From c81ff84a366cb2e0adaa7e5ac2eb5828eeafdc5b Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Fri, 12 Dec 2025 17:03:21 +0100 Subject: [PATCH] fix pipeline --- delivery.yaml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/delivery.yaml b/delivery.yaml index b9a826939..edee2ac74 100644 --- a/delivery.yaml +++ b/delivery.yaml @@ -88,16 +88,19 @@ pipeline: vm_config: type: linux - commands: - - desc: Build image - cmd: | - cd logical-backup - export TAG=$(git describe --tags --always --dirty) - 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}/logical-backup:${TAG} \ - --push . - - if [ -z ${CDP_SOURCE_BRANCH} ]; then - cdp-promote-image ${MULTI_ARCH_REGISTRY}/logical-backup:${TAG} - fi + commands: + - desc: Build image + cmd: | + cd logical-backup + if [ -z ${CDP_SOURCE_BRANCH} ]; then + IMAGE=${MULTI_ARCH_REGISTRY}/logical-backup + else + IMAGE=${MULTI_ARCH_REGISTRY}/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 ${IMAGE}:${CDP_BUILD_VERSION} \ + --push . + if [ -z ${CDP_SOURCE_BRANCH} ]; then + cdp-promote-image ${IMAGE}:${CDP_BUILD_VERSION} + fi