From 4f172ff6cb4bf9d11b977a4549f7a9de200fa8dd Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Mon, 27 Oct 2025 14:28:08 +0100 Subject: [PATCH] login to ghcr.io and build there --- Makefile | 1 + delivery.yaml | 11 ++++++----- ui/Makefile | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 50d070b9d..a7ee8784c 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,7 @@ docker: ${DOCKERDIR}/${DOCKERFILE} echo "Version ${VERSION}" echo "CDP tag ${CDP_TAG}" echo "git describe $(shell git describe --tags --always --dirty)" + docker login ghcr.io -u "${{ github.actor }}" -p "${{ secrets.GITHUB_TOKEN }}" docker build --rm -t "$(IMAGE):$(TAG)$(CDP_TAG)$(DEBUG_FRESH)$(DEBUG_POSTFIX)" -f "${DOCKERDIR}/${DOCKERFILE}" --build-arg VERSION="${VERSION}" . indocker-race: diff --git a/delivery.yaml b/delivery.yaml index 7eacd769b..45d435dca 100644 --- a/delivery.yaml +++ b/delivery.yaml @@ -20,9 +20,9 @@ pipeline: IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+"true"} if [[ ${CDP_TARGET_BRANCH} == "master" && ${IS_PR_BUILD} != "true" ]] then - IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator + IMAGE=ghcr.io/zalando/postgres-operator else - IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator-test + IMAGE=ghcr.io/zalando/postgres-operator-test fi export IMAGE make docker push @@ -49,9 +49,9 @@ pipeline: IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+"true"} if [[ ${CDP_TARGET_BRANCH} == "master" && ${IS_PR_BUILD} != "true" ]] then - IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator-ui + IMAGE=ghcr.io/zalando/postgres-operator-ui else - IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator-ui-test + IMAGE=ghcr.io/zalando/postgres-operator-ui-test fi export IMAGE make docker @@ -67,6 +67,7 @@ pipeline: cmd: | cd logical-backup export TAG=$(git describe --tags --always --dirty) - IMAGE="registry-write.opensource.zalan.do/acid/logical-backup" + IMAGE="ghcr.io/zalando/logical-backup" + docker login ghcr.io -u "${{ github.actor }}" -p "${{ secrets.GITHUB_TOKEN }}" docker build --rm -t "$IMAGE:$TAG$CDP_TAG" . docker push "$IMAGE:$TAG$CDP_TAG" diff --git a/ui/Makefile b/ui/Makefile index 8f88982ab..ecd34a368 100644 --- a/ui/Makefile +++ b/ui/Makefile @@ -30,6 +30,7 @@ docker: appjs echo "Version ${VERSION}" echo "CDP tag ${CDP_TAG}" echo "git describe $(shell git describe --tags --always --dirty)" + docker login ghcr.io -u "${{ github.actor }}" -p "${{ secrets.GITHUB_TOKEN }}" docker build --rm -t "$(IMAGE):$(TAG)$(CDP_TAG)" -f Dockerfile . push: