diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52c2e9f..2e210ed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,9 @@ jobs: uses: docker/setup-buildx-action@v4 - name: Login to GHCR run: echo "${{secrets.GITHUB_TOKEN}}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin + - name: Lowercase image repository name + id: image + run: echo "repo=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT" - name: Docker Build and Push uses: docker/build-push-action@v7 with: @@ -44,8 +47,8 @@ jobs: org.opencontainers.image.version=${{ github.ref_name }} org.opencontainers.image.revision=${{ github.sha }} tags: | - ghcr.io/${{ github.repository }}:${{ github.ref_name }} - ghcr.io/${{ github.repository }}:latest + ghcr.io/${{ steps.image.outputs.repo }}:${{ github.ref_name }} + ghcr.io/${{ steps.image.outputs.repo }}:latest - name: Build and publish to pypi uses: JRubics/poetry-publish@v2.1 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 693901b..b33d8db 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -127,6 +127,9 @@ jobs: uses: docker/setup-buildx-action@v4 - name: Login to GHCR run: echo "${{secrets.GITHUB_TOKEN}}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin + - name: Lowercase image repository name + id: image + run: echo "repo=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT" - name: Docker Build uses: docker/build-push-action@v7 with: @@ -140,4 +143,4 @@ jobs: org.opencontainers.image.version=${{ github.ref_name }} org.opencontainers.image.revision=${{ github.sha }} tags: | - ghcr.io/${{ github.repository }}:${{ github.sha }} + ghcr.io/${{ steps.image.outputs.repo }}:${{ github.sha }}