Skip to content

Commit

Permalink
add condition to diff pg version
Browse files Browse the repository at this point in the history
  • Loading branch information
idanovinda committed Sep 11, 2023
1 parent a68ebd0 commit ceca096
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,19 @@ pipeline:
# create a Buildkit builder with CDP specific configuration
docker buildx create --config /etc/cdp-buildkitd.toml --driver-opt network=host --bootstrap --use
docker buildx build --platform "linux/amd64,linux/arm64" \
--build-arg PGVERSION="$PGVERSION" \
--build-arg BASE_IMAGE="$BASE_IMAGE" \
-t "$ECR_TEST_IMAGE" \
--push .
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 .
fi
cdp-promote-image "$ECR_TEST_IMAGE"
# - id: tag-spilo
Expand Down

0 comments on commit ceca096

Please sign in to comment.