Add simple build for logical backup images

This commit is contained in:
Sergey Dudoladov 2019-05-27 13:03:17 +02:00
parent 6f00f06986
commit 2e626b6a9b
1 changed files with 11 additions and 0 deletions

View File

@ -12,6 +12,17 @@ pipeline:
- desc: 'Install required build software'
cmd: |
apt-get install -y make git apt-transport-https ca-certificates curl build-essential
- desc: 'Build logical backup image'
cmd: |
IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+"true"}
if [[ ${CDP_TARGET_BRANCH} == "master" && ${IS_PR_BUILD} != "true" ]]
then
LB_IMAGE=registry-write.opensource.zalan.do/acid/logical-backup
else
LB_IMAGE=registry-write.opensource.zalan.do/acid/logical-backup-test
fi
docker build -t "$LB_IMAGE" ./docker/logical-backup
docker push "$LB_IMAGE"
- desc: 'Install go'
cmd: |
cd /tmp