diff --git a/delivery.yaml b/delivery.yaml index 933e72733..f195c8ecc 100644 --- a/delivery.yaml +++ b/delivery.yaml @@ -42,6 +42,34 @@ pipeline: -f docker/Dockerfile \ --push . + - id: build-pooler + env: + <<: *BUILD_ENV + type: script + vm_config: + type: linux + + commands: + - desc: Build image + cmd: | + cd pooler + if [ -z ${CDP_SOURCE_BRANCH} ]; then + IMAGE=${MULTI_ARCH_REGISTRY}/postgres-operator-pooler + else + IMAGE=${MULTI_ARCH_REGISTRY}/postgres-operator-pooler-test + fi + + docker buildx create --config /etc/cdp-buildkitd.toml --driver-opt network=host --bootstrap --use + docker buildx build --platform "linux/amd64,linux/arm64" \ + --build-arg BASE_IMAGE="${ALPINE_BASE_IMAGE}" \ + -t "${IMAGE}:${CDP_BUILD_VERSION}" \ + -f docker/Dockerfile \ + --push . + + if [ -z ${CDP_SOURCE_BRANCH} ]; then + cdp-promote-image ${IMAGE}:${CDP_BUILD_VERSION} + fi + - id: build-operator-ui env: <<: *BUILD_ENV diff --git a/pooler/Dockerfile b/pooler/Dockerfile index 23b94fac5..713fa88bd 100644 --- a/pooler/Dockerfile +++ b/pooler/Dockerfile @@ -7,7 +7,7 @@ RUN apk --update add \ RUN git clone \ --single-branch \ - --branch=stable-1.23 \ + --branch=stable-1.25 \ --depth 1 \ https://github.com/pgbouncer/pgbouncer.git src