forked from zalando-zmon/zmon-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelivery.yaml
30 lines (26 loc) · 883 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
version: "2017-09-20"
pipeline:
- id: build
type: script
commands:
- desc: "Install dependencies"
cmd: |
apt-get install -q -y --no-install-recommends \
git \
python3.5 \
python3-pip \
python3-setuptools
curl -fLOsS https://delivery.cloud.zalando.com/utils/ensure-docker && sh ensure-docker && rm ensure-docker
pip3 install -U flake8
- desc: "Push Docker Image"
cmd: |
IS_PR_BUILD=${CDP_PULL_REQUEST_NUMBER+"true"}
if [[ ${IS_PR_BUILD} != "true" ]]
then
VERSION=$(git describe --tags --always --dirty)
else
VERSION=${CDP_BUILD_VERSION}
fi
IMAGE=registry-write.opensource.zalan.do/zmon/zmon-worker:${VERSION}
docker build --tag "$IMAGE" .
docker push "$IMAGE"