Skip to content

Commit 7076e17

Browse files
committed
fix repo name for docker image publish
1 parent c11c451 commit 7076e17

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ jobs:
2929
username: ${{ github.actor }}
3030
password: ${{ secrets.GITHUB_TOKEN }}
3131

32+
- name: Lowercase repository name
33+
id: repo
34+
run: echo "name=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT
35+
3236
- name: Build and push
3337
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
3438
with:
3539
context: .
3640
push: true
3741
platforms: linux/amd64,linux/arm64
3842
tags: |
39-
ghcr.io/${{ github.repository }}:latest
40-
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
43+
ghcr.io/${{ steps.repo.outputs.name }}:latest
44+
ghcr.io/${{ steps.repo.outputs.name }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)