adjust logical backup image tagging

This commit is contained in:
inovindasari 2025-12-12 15:28:05 +01:00
parent 25d3d220af
commit 1756394467
1 changed files with 9 additions and 3 deletions

View File

@ -92,12 +92,18 @@ pipeline:
- desc: Build image
cmd: |
cd logical-backup
export TAG=$(git describe --tags --always --dirty)
if [ -z ${CDP_SOURCE_BRANCH} ]; then
IMAGE=${MULTI_ARCH_REGISTRY}/postgres-operator-logical-backup
else
IMAGE=${MULTI_ARCH_REGISTRY}/postgres-operator-logical-backup-test
fi
docker buildx create --config /etc/cdp-buildkitd.toml --driver-opt network=host --bootstrap --use
docker buildx build --platform linux/amd64,linux/arm64 \
-t ${MULTI_ARCH_REGISTRY}/postgres-operator-logical-backup:${TAG} \
-t ${MULTI_ARCH_REGISTRY}/postgres-operator-logical-backup:${CDP_BUILD_VERSION} \
--push .
if [ -z ${CDP_SOURCE_BRANCH} ]; then
cdp-promote-image ${MULTI_ARCH_REGISTRY}/postgres-operator-logical-backup:${TAG}
cdp-promote-image ${IMAGE}:${CDP_BUILD_VERSION}
fi