Skip to content

Commit f491497

Browse files
committed
ci: fix ghcr.io doesnt accept uppercase names
1 parent 81b2b4d commit f491497

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
id: meta
3232
uses: docker/metadata-action@v5
3333
with:
34-
images: ghcr.io/${{ github.repository_owner }}/ziit
34+
images: ghcr.io/${{ github.repository }}
3535
tags: |
3636
type=raw,value=${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_type == 'tag' && github.ref_name || 'nightly' }}
3737
type=sha,format=short
@@ -78,7 +78,7 @@ jobs:
7878
context: .
7979
platforms: ${{ matrix.platform }}
8080
labels: ${{ needs.prepare.outputs.labels }}
81-
outputs: type=image,name=ghcr.io/${{ github.repository_owner }}/ziit,push-by-digest=true,name-canonical=true,push=true
81+
outputs: type=image,name=ghcr.io/${{ github.repository }},push-by-digest=true,name-canonical=true,push=true
8282
cache-from: type=gha,scope=build-${{ env.PLATFORM_PAIR }}
8383
cache-to: type=gha,mode=max,scope=build-${{ env.PLATFORM_PAIR }}
8484

@@ -125,10 +125,10 @@ jobs:
125125
working-directory: /tmp/digests
126126
run: |
127127
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
128-
$(printf 'ghcr.io/${{ github.repository_owner }}/ziit@sha256:%s ' *)
128+
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
129129
env:
130130
DOCKER_METADATA_OUTPUT_JSON: ${{ needs.prepare.outputs.json }}
131131

132132
- name: Inspect image
133133
run: |
134-
docker buildx imagetools inspect ghcr.io/${{ github.repository_owner }}/ziit:${{ fromJSON(needs.prepare.outputs.json).labels['org.opencontainers.image.version'] }}
134+
docker buildx imagetools inspect ghcr.io/${{ github.repository }}:${{ fromJSON(needs.prepare.outputs.json).labels['org.opencontainers.image.version'] }}

0 commit comments

Comments
 (0)