This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
delivery.yaml
74 lines (65 loc) · 2.27 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "2017-09-20"
pipeline:
- id: build
type: script
vm_config:
type: linux
size: large
image: cdp-runtime/python-3.9
commands:
- desc: Run tests
cmd: |
pip3 install -r requirements.txt
python3 setup.py test
- desc: Build docker images for different architectures
cmd: |
IMAGE="container-registry-test.zalando.net/aruha/bubuku-appliance:oss-${CDP_BUILD_VERSION}"
# create a Buildkit builder with CDP specific configuration
docker buildx create \
--config /etc/cdp-buildkitd.toml \
--driver-opt network=host \
--name cdpbuildx \
--bootstrap \
--use
# (1) build image for AMD64 and ARM64 and push it to the Zalando Container Registry
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t ${IMAGE} \
--push \
.
# (2) promote it from `container-registry-test` to `container-registry`, marking it production-ready
cdp-promote-image ${IMAGE}
- id: push-pierone-arm64
type: script
when:
event: push
vm_config:
type: linux
image: cdp-runtime/base
commands:
- desc: Push ARM64 image to PierOne
cmd: |
IMAGE="container-registry.zalando.net/aruha/bubuku-appliance:oss-${CDP_BUILD_VERSION}"
PIERONE_IMAGE="registry-write.opensource.zalan.do/aruha/bubuku-appliance:oss-${CDP_BUILD_VERSION}-arm64"
docker pull --platform linux/arm64 $IMAGE
docker tag $IMAGE $PIERONE_IMAGE
docker push $PIERONE_IMAGE
- id: push-pierone-amd64
type: script
when:
event: push
vm_config:
type: linux
image: cdp-runtime/base
commands:
- desc: Push AMD64 image to PierOne
cmd: |
IMAGE="container-registry.zalando.net/aruha/bubuku-appliance:oss-${CDP_BUILD_VERSION}"
PIERONE_IMAGE="registry-write.opensource.zalan.do/aruha/bubuku-appliance:oss-${CDP_BUILD_VERSION}-amd64"
docker pull --platform linux/amd64 $IMAGE
docker tag $IMAGE $PIERONE_IMAGE
docker push $PIERONE_IMAGE
notifications:
- channel: google_chat
rooms:
- AAAAmX_hkRQ