Skip to content

Commit cd0ede0

Browse files
author
Sri Ramanujam
committed
Use lowercase in repository name so that tag is valid
1 parent 2bedc14 commit cd0ede0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
-
3030
name: Set tag name in environment
3131
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
32+
-
33+
name: Set lowercase repository in environment
34+
run: echo "REPOSITORY_LOWERCASE=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
3235
-
3336
name: Build and push
3437
uses: docker/build-push-action@v2
@@ -37,5 +40,5 @@ jobs:
3740
platforms: linux/amd64,linux/arm64
3841
push: true
3942
tags: |
40-
ghcr.io/${{ github.repository }}:latest
41-
ghcr.io/${{ github.repository }}:${{ env.RELEASE_VERSION }}
43+
ghcr.io/${{ env.REPOSITORY_LOWERCASE }}:latest
44+
ghcr.io/${{ env.REPOSITORY_LOWERCASE }}:${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)