-
Notifications
You must be signed in to change notification settings - Fork 9
/
delivery.yaml
33 lines (31 loc) · 949 Bytes
/
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"
type: script
vm: small
timeout: 10m
overlay: guild-python/latest
env:
PYENV_VERSION: "3.8"
commands:
- desc: "Install dependencies"
cmd: |
apt-get update
apt-get install -q -y --no-install-recommends \
gcc \
libffi-dev \
libssl-dev \
tox
- desc: "Run tox"
cmd: tox
- desc: "Push Docker Image"
cmd: |
IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+"true"}
if [[ ${IS_PR_BUILD} != "true" ]]
then
AGENT_IMAGE=registry-write.opensource.zalan.do/logging/kubernetes-log-watcher:${CDP_BUILD_VERSION}
else
AGENT_IMAGE=registry-write.opensource.zalan.do/logging/kubernetes-log-watcher-unstable:${CDP_BUILD_VERSION}
fi
docker build --tag "$AGENT_IMAGE" .
docker push "$AGENT_IMAGE"