Skip to content

Commit b94108c

Browse files
Zawwarsami16claude
andcommitted
fix(release): lowercase GHCR owner so docker push works
GHCR requires lowercase repo paths; my earlier release.yml used ${{ github.repository_owner }} verbatim which retains capitals (e.g. 'Zawwarsami16'). buildx fails with 'repository name must be lowercase'. new step lowercases via bash parameter expansion (${...,,}) and exposes as steps.ver.outputs.owner_lc, used in the tags. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8c82d01 commit b94108c

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ jobs:
6161
steps:
6262
- uses: actions/checkout@v4
6363

64-
- name: Extract version from tag
64+
- name: Extract version from tag + lowercase owner
6565
id: ver
66-
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
66+
run: |
67+
echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
68+
# GHCR requires lowercase repo paths; the github actor / owner
69+
# may contain capitals.
70+
echo "owner_lc=${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_OUTPUT"
6771
6872
- name: Set up Docker Buildx
6973
uses: docker/setup-buildx-action@v3
@@ -82,7 +86,7 @@ jobs:
8286
platforms: linux/amd64,linux/arm64
8387
push: true
8488
tags: |
85-
ghcr.io/${{ github.repository_owner }}/zhub:latest
86-
ghcr.io/${{ github.repository_owner }}/zhub:${{ steps.ver.outputs.version }}
89+
ghcr.io/${{ steps.ver.outputs.owner_lc }}/zhub:latest
90+
ghcr.io/${{ steps.ver.outputs.owner_lc }}/zhub:${{ steps.ver.outputs.version }}
8791
cache-from: type=gha
8892
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)