fix pipeline
This commit is contained in:
parent
ba743fc868
commit
c81ff84a36
|
|
@ -88,16 +88,19 @@ pipeline:
|
||||||
vm_config:
|
vm_config:
|
||||||
type: linux
|
type: linux
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
- desc: Build image
|
- desc: Build image
|
||||||
cmd: |
|
cmd: |
|
||||||
cd logical-backup
|
cd logical-backup
|
||||||
export TAG=$(git describe --tags --always --dirty)
|
if [ -z ${CDP_SOURCE_BRANCH} ]; then
|
||||||
docker buildx create --config /etc/cdp-buildkitd.toml --driver-opt network=host --bootstrap --use
|
IMAGE=${MULTI_ARCH_REGISTRY}/logical-backup
|
||||||
docker buildx build --platform linux/amd64,linux/arm64 \
|
else
|
||||||
-t ${MULTI_ARCH_REGISTRY}/logical-backup:${TAG} \
|
IMAGE=${MULTI_ARCH_REGISTRY}/logical-backup-test
|
||||||
--push .
|
fi
|
||||||
|
docker buildx create --config /etc/cdp-buildkitd.toml --driver-opt network=host --bootstrap --use
|
||||||
if [ -z ${CDP_SOURCE_BRANCH} ]; then
|
docker buildx build --platform linux/amd64,linux/arm64 \
|
||||||
cdp-promote-image ${MULTI_ARCH_REGISTRY}/logical-backup:${TAG}
|
-t ${IMAGE}:${CDP_BUILD_VERSION} \
|
||||||
fi
|
--push .
|
||||||
|
if [ -z ${CDP_SOURCE_BRANCH} ]; then
|
||||||
|
cdp-promote-image ${IMAGE}:${CDP_BUILD_VERSION}
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue