Add delivery.yaml

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
This commit is contained in:
Mikkel Oscar Lyderik Larsen 2018-10-08 18:12:30 +02:00
parent 3db0cc3135
commit 1379293ae9
No known key found for this signature in database
GPG Key ID: 50AD98B2A0D8D4EF

20
delivery.yaml Normal file
View File

@ -0,0 +1,20 @@
version: "2017-09-20"
pipeline:
- id: build
overlay: ci/golang
type: script
commands:
- desc: test
cmd: |
make test
- desc: build
cmd: |
make build.docker
- desc: push
cmd: |
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
IMAGE=registry-write.opensource.zalan.do/teapot/kube-metrics-adapter
else
IMAGE=registry-write.opensource.zalan.do/teapot/kube-metrics-adapter-test
fi
IMAGE=$IMAGE VERSION=$CDP_BUILD_VERSION make build.push