mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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 ' *)
|
||||
|
||||
Reference in New Issue
Block a user