diff --git a/.github/workflows/push-docker.yml b/.github/workflows/push-docker.yml index b21c1b4..4238e80 100644 --- a/.github/workflows/push-docker.yml +++ b/.github/workflows/push-docker.yml @@ -24,6 +24,10 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 + - name: Lowercase GitHub repository name + run: | + echo "IMAGE_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + - name: Build and publish a Docker image for ${{ github.repository }} uses: docker/build-push-action@v3 with: @@ -31,4 +35,4 @@ jobs: file: ./Containerfile platforms: linux/amd64,linux/arm64 push: true - tags: ghcr.io/${{ github.repository }}:latest + tags: ghcr.io/${{ env.IMAGE_NAME }}:latest