Skip to content

Commit

Permalink
Add repo name to image name
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Jan 18, 2024
1 parent 81ab56e commit 9d7414f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
IMAGE_ID=ghcr.io/$GITHUB_REPOSITORY/$IMAGE_NAME
# repository name must be lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
Expand Down

0 comments on commit 9d7414f

Please sign in to comment.