Skip to content

Commit

Permalink
simplify if else
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovinda committed Sep 11, 2023
1 parent ceca096 commit 60f02d3
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,14 @@ pipeline:
# create a Buildkit builder with CDP specific configuration
docker buildx create --config /etc/cdp-buildkitd.toml --driver-opt network=host --bootstrap --use
if [ "x${CDP_SOURCE_BRANCH}" == "x" ] && ; then
docker buildx build --platform "linux/amd64,linux/arm64" \
--build-arg PGVERSION="$PGVERSION" \
--build-arg BASE_IMAGE="$BASE_IMAGE" \
-t "$ECR_TEST_IMAGE" \
--push .
elif [ "x${CDP_TARGET_BRANCH}" == "xdev-16" ]; then
docker buildx build --platform "linux/amd64,linux/arm64" \
--build-arg PGVERSION=16 \
--build-arg BASE_IMAGE="$BASE_IMAGE" \
-t "$ECR_TEST_IMAGE" \
--push .
if [ "x${CDP_TARGET_BRANCH}" == "xdev-16" ]; then
PGVERSION=16
fi
docker buildx build --platform "linux/amd64,linux/arm64" \
--build-arg PGVERSION="$PGVERSION" \
--build-arg BASE_IMAGE="$BASE_IMAGE" \
-t "$ECR_TEST_IMAGE" \
--push .
cdp-promote-image "$ECR_TEST_IMAGE"
# - id: tag-spilo
Expand Down

0 comments on commit 60f02d3

Please sign in to comment.