From 3a8b91a5041c27b6d5822ee6bf570726ac794f5b Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Mon, 26 Feb 2024 15:42:53 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release-workflow/docker-push.sh b/script/release-workflow/docker-push.sh index 533a6d0..1c8690d 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