-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build docker images from the master branch via CDP and push them to the registry.opensource.zalan.do
- Loading branch information
1 parent
fe6c162
commit 2f5a349
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
build_steps: | ||
- desc: 'Install required build software' | ||
cmd: | | ||
apt-get install -y make git apt-transport-https ca-certificates curl | ||
- desc: 'Install go' | ||
cmd: | | ||
add-apt-repository ppa:longsleep/golang-backports | ||
apt-get update | ||
apt-get install -y golang-go | ||
- desc: 'Install Docker' | ||
cmd: | | ||
curl -sSL https://get.docker.com/ | sh | ||
- desc: 'Symlink sources into the GOPATH' | ||
cmd: | | ||
export GOPATH=$HOME/go | ||
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' | ||
cmd: | | ||
export PATH=$PATH:$HOME/go/bin | ||
export IMAGE=registry-write.opensource.zalan.do/acid/postgres-operator | ||
make tools deps docker push |