From 09104d2570e5b73f7b69a9370ee781ed408e2725 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Mon, 26 Feb 2024 15:38:30 +0000 Subject: [PATCH] fix: ghcr images need to publish to pact-foundation / dockerhub images to pactfoundation GitHub container registries must contain a matching NAMESPACE to the GitHub user or org. This worked on my personal fork, as my GH and Docker username are the same, however pact-foundation uses a hyphen-less NAMESPACE when publishing to docker.io https://hub.docker.com/u/pactfoundation We therefore need to set the org name to pact-foundation when publishing to ghcr. --- script/release-workflow/docker-push.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/release-workflow/docker-push.sh b/script/release-workflow/docker-push.sh index 533a6d0..2f7c5f4 100755 --- a/script/release-workflow/docker-push.sh +++ b/script/release-workflow/docker-push.sh @@ -13,7 +13,7 @@ push() { push_ghcr() { docker buildx build --platform=linux/amd64,linux/arm64,linux/arm \ --output=type=image,push=true \ - -t ghcr.io/${DOCKER_IMAGE_ORG_AND_NAME}:$1 . + -t ghcr.io/${DOCKER_IMAGE_ORG_AND_NAME/pactfoundation/pact-foundation}:$1 . } if [ -n "${MAJOR_TAG:-}" ]; then @@ -27,4 +27,4 @@ push_ghcr ${TAG} if [ "${PUSH_TO_LATEST}" != "false" ]; then push latest push_ghcr latest -fi \ No newline at end of file +fi