-
Notifications
You must be signed in to change notification settings - Fork 25
/
delivery.yaml
33 lines (31 loc) · 1.01 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
version: "2017-09-20"
pipeline:
- id: build
vm_config:
type: linux
image: "cdp-runtime/go"
size: large
type: script
env:
GOFLAGS: "-mod=readonly"
cache:
paths:
- /go/pkg/mod
- ~/.cache/go-build
commands:
- desc: test & check
cmd: |
make lint
make test
- desc: Build and push image to Zalando's registry
cmd: |
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
VERSION=$(git describe --tags --always --dirty)
else
VERSION=$CDP_BUILD_VERSION
fi
IMAGE=container-registry-test.zalando.net/teapot/cluster-lifecycle-manager
make build.linux.amd64 build.linux.arm64
docker buildx create --config /etc/cdp-buildkitd.toml --driver-opt network=host --bootstrap --use
docker buildx build --rm --build-arg BASE_IMAGE=container-registry.zalando.net/library/amazonlinux-2023-slim:latest -t "${IMAGE}:${VERSION}" --platform linux/amd64,linux/arm64 --push .
cdp-promote-image "${IMAGE}:${VERSION}"