Skip to content

Commit

Permalink
Add delivery.yaml (#223)
Browse files Browse the repository at this point in the history
to enable CDP builds
  • Loading branch information
CyberDem0n committed Apr 24, 2018
1 parent 3618a81 commit 26d2f81
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions postgres-appliance/delivery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
build_steps:
- desc: Prepare Environment
cmd: |
apt-get update
apt-get install -y python3 python3-pip
pip3 install scm-source 'docker<3.0.0' docker-squash
- desc: Install Docker
cmd: 'curl -sSL https://get.docker.com/ | sh'

- desc: Build and push docker images
cmd: |
PATRONIVERSION=$(sed -n 's/^ENV PATRONIVERSION=\([1-9][0-9]*\.[1-9][0-9]*\).*$/\1/p' Dockerfile.build)
VERSION=$(($(git rev-list HEAD --count --no-merges)-409))
IMAGE="registry-write.opensource.zalan.do/acid/spilo-cdp-10:${PATRONIVERSION}-p${VERSION}"
if [ "x$CDP_SOURCE_BRANCH" == "x" ]; then
COMPRESS=true
else
COMPRESS=false
fi
./build.sh --build-arg COMPRESS=${COMPRESS} -t "${IMAGE}" .
docker images
if [ "x$CDP_SOURCE_BRANCH" == "x" ]; then
docker push "${IMAGE}"
fi

0 comments on commit 26d2f81

Please sign in to comment.