-
Notifications
You must be signed in to change notification settings - Fork 18
/
delivery.yaml
39 lines (39 loc) · 1.26 KB
/
delivery.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: "2017-09-20"
pipeline:
- id: build
vm_config:
type: linux
image: "cdp-runtime/go"
type: script
cache:
paths:
- /go/pkg/mod
- ~/.cache/go-build
commands:
- desc: test & check
cmd: |
make test
- desc: build
cmd: |
make build.docker
- desc: Build and push image to PierOne
cmd: |
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
IMAGE=registry-write.opensource.zalan.do/teapot/kube-aws-iam-controller
VERSION=$(git describe --tags --always --dirty)
else
IMAGE=registry-write.opensource.zalan.do/teapot/kube-aws-iam-controller-test
VERSION=$CDP_BUILD_VERSION
fi
IMAGE=$IMAGE VERSION=$VERSION make build.push
- desc: Build and push image to Zalando's registry
cmd: |
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
IMAGE=container-registry-test.zalando.net/teapot/kube-aws-iam-controller
VERSION=$(git describe --tags --always --dirty)
else
IMAGE=container-registry-test.zalando.net/teapot/kube-aws-iam-controller-test
VERSION="${CDP_BUILD_VERSION}"
fi
IMAGE="${IMAGE}" VERSION="${VERSION}" make build.push.multiarch
cdp-promote-image "${IMAGE}:${VERSION}"