forked from zalando-zmon/zmon-agent-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelivery.yaml
40 lines (36 loc) · 1.18 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
version: "2017-09-20"
pipeline:
- id: build
type: script
commands:
- desc: "Install dependencies"
cmd: |
apt-get update
apt-get install -q -y --no-install-recommends \
git \
python3.5 \
python3.5-dev \
python3-pip \
python3-setuptools \
python3-wheel \
gcc \
libffi-dev \
libssl-dev \
tox
curl -fLOsS https://delivery.cloud.zalando.com/utils/ensure-docker && sh ensure-docker && rm ensure-docker
pip3 install -U flake8
- desc: "Flake 8"
cmd: |
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)
IMAGE=registry-write.opensource.zalan.do/zmon/zmon-agent-core:${VERSION}
else
VERSION=${CDP_BUILD_VERSION}
IMAGE=registry-write.opensource.zalan.do/zmon/zmon-agent-core-unstable:${VERSION}
fi
docker build --tag "$IMAGE" .
docker push "$IMAGE"