Skip to content

Commit

Permalink
Avoid pushing postgres-operator image on PRs.
Browse files Browse the repository at this point in the history
Do push as postgres-operator from the master branch, and as a
postgres-operator-test when evaluating pull-requests.
  • Loading branch information
alexeyklyukin committed Jun 14, 2017
1 parent 2f5a349 commit 08431d3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions delivery.yaml
Expand Up @@ -16,8 +16,15 @@ build_steps:
export OPERATOR_TOP_DIR=$GOPATH/src/github.com/zalando-incubator
mkdir -p $OPERATOR_TOP_DIR
ln -s $(pwd) $OPERATOR_TOP_DIR/postgres-operator
- desc: 'Build & push'
- desc: 'Build & push docker image'
cmd: |
export PATH=$PATH:$HOME/go/bin
export IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator
IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+"true"}
if [[ ${CDP_TARGET_BRANCH} == "master" && ${IS_PR_BUILD} != "true" ]]
then
IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator
else
IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator-test
fi
export IMAGE
make tools deps docker push

0 comments on commit 08431d3

Please sign in to comment.