From 9097752888595caa6b949e7979df368dbd7ef1cc Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 10 Jun 2026 14:18:12 +0200 Subject: [PATCH] ci(release): lowercase ghcr repo ghcr does not support uppercase letters, which was not a problem when testing in my fork. But the PostgREST org's name obviously has uppercase letters in it, so we need to lowercase these for the ghcr namespace. --- .github/workflows/release.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6c466f372..9baa94bf1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -200,25 +200,25 @@ jobs: - name: Publish images on Docker Hub run: | docker load -i postgrest-docker-aarch64.tar.gz - docker tag postgrest:latest "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}-linux-arm64" - docker push "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}-linux-arm64" + docker tag postgrest:latest "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}-linux-arm64" + docker push "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}-linux-arm64" docker load -i postgrest-docker-x86-64.tar.gz - docker tag postgrest:latest "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}-linux-amd64" - docker push "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}-linux-amd64" + docker tag postgrest:latest "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}-linux-amd64" + docker push "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}-linux-amd64" - docker manifest create "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}" \ - "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}-linux-arm64" \ - "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}-linux-amd64" - docker manifest push "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}" + docker manifest create "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}" \ + "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}-linux-arm64" \ + "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}-linux-amd64" + docker manifest push "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}" # Only tag 'latest' for full releases if [ "${GITHUB_REF_NAME}" != "devel" ]; then echo "Pushing to 'latest' tag for full release of ${GITHUB_REF_NAME} ..." - docker manifest create "ghcr.io/${GITHUB_REPOSITORY}:latest" \ - "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}-linux-arm64" \ - "ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME}-linux-amd64" - docker manifest push "ghcr.io/${GITHUB_REPOSITORY}:latest" + docker manifest create "ghcr.io/${GITHUB_REPOSITORY,,}:latest" \ + "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}-linux-arm64" \ + "ghcr.io/${GITHUB_REPOSITORY,,}:${GITHUB_REF_NAME}-linux-amd64" + docker manifest push "ghcr.io/${GITHUB_REPOSITORY,,}:latest" else echo "Skipping push to 'latest' tag for pre-release..." fi