Skip to content

Commit

Permalink
fix: lowercase repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Oct 21, 2023
1 parent d02a52b commit 9524765
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,19 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- name: lowercase repo name
id: lower-repo
shell: pwsh
run: |
"::set-output name=repository::$($env:GITHUB_REPOSITORY.ToLowerInvariant())"
- name: build and push Docker image
uses: docker/build-push-action@v4
with:
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/parkapi2:latest
${{ steps.lower-repo.outputs.repository }}:latest
platforms: linux/amd64,linux/arm64
# https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
cache-from: type=gha
Expand Down

0 comments on commit 9524765

Please sign in to comment.