fix: lowercase Docker registry references for GHCR

github.repository resolves to snapotter-hq/SnapOtter (mixed case) but
Docker registry names must be lowercase.
This commit is contained in:
SnapOtter
2026-04-24 18:13:39 +08:00
parent 00f0af4c79
commit 55fef373b5
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -115,5 +115,5 @@ jobs:
push: false
tags: snapotter:ci
build-args: SKIP_MODEL_DOWNLOADS=true
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:cache-linux-amd64
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:cache-ci,mode=max
cache-from: type=registry,ref=ghcr.io/snapotter-hq/snapotter:cache-linux-amd64
cache-to: type=registry,ref=ghcr.io/snapotter-hq/snapotter:cache-ci,mode=max
+6 -6
View File
@@ -110,7 +110,7 @@ jobs:
with:
images: |
snapotterhq/snapotter
ghcr.io/${{ github.repository }}
ghcr.io/snapotter-hq/snapotter
- name: Build and push by digest
id: build
@@ -120,9 +120,9 @@ jobs:
file: docker/Dockerfile
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,"name=snapotterhq/snapotter,ghcr.io/${{ github.repository }}",push-by-digest=true,name-canonical=true,push=true
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:cache-${{ env.PLATFORM_PAIR }}
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:cache-${{ env.PLATFORM_PAIR }},mode=max
outputs: type=image,"name=snapotterhq/snapotter,ghcr.io/snapotter-hq/snapotter",push-by-digest=true,name-canonical=true,push=true
cache-from: type=registry,ref=ghcr.io/snapotter-hq/snapotter:cache-${{ env.PLATFORM_PAIR }}
cache-to: type=registry,ref=ghcr.io/snapotter-hq/snapotter:cache-${{ env.PLATFORM_PAIR }},mode=max
- name: Export digest
run: |
@@ -169,7 +169,7 @@ jobs:
with:
images: |
snapotterhq/snapotter
ghcr.io/${{ github.repository }}
ghcr.io/snapotter-hq/snapotter
tags: |
type=semver,pattern={{version}},value=v${{ needs.release.outputs.new_version }}
type=semver,pattern={{major}}.{{minor}},value=v${{ needs.release.outputs.new_version }}
@@ -188,4 +188,4 @@ jobs:
run: |
docker buildx imagetools create \
$(jq -cr '.tags | map(select(startswith("ghcr.io/")) | "-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
$(printf 'ghcr.io/snapotter-hq/snapotter@sha256:%s ' *)