Skip to content

Commit 230cae7

Browse files
apartsinclaude
andcommitted
Fix Docker publish: lowercase GHCR repository owner
github.repository_owner is 'ApartsinProjects' (mixed case) but Docker registry tags must be lowercase. Pipe through tr to fix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c8d2620 commit 230cae7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,18 @@ jobs:
8181
registry: ghcr.io
8282
username: ${{ github.actor }}
8383
password: ${{ secrets.GITHUB_TOKEN }}
84-
- name: Extract version
85-
id: version
86-
run: echo "tag=${GITHUB_REF_NAME:-latest}" >> $GITHUB_OUTPUT
84+
- name: Extract version and owner
85+
id: meta
86+
run: |
87+
echo "tag=${GITHUB_REF_NAME:-latest}" >> $GITHUB_OUTPUT
88+
echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
8789
- name: Build and push
8890
uses: docker/build-push-action@v5
8991
with:
9092
context: .
9193
push: true
9294
tags: |
93-
ghcr.io/${{ github.repository_owner }}/modelmesh:${{ steps.version.outputs.tag }}
94-
ghcr.io/${{ github.repository_owner }}/modelmesh:latest
95+
ghcr.io/${{ steps.meta.outputs.owner }}/modelmesh:${{ steps.meta.outputs.tag }}
96+
ghcr.io/${{ steps.meta.outputs.owner }}/modelmesh:latest
9597
cache-from: type=gha
9698
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)