diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index 827e85a..f8115f3 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -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