forked from zalando-zmon/zmon-aws-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
delivery.yaml
33 lines (30 loc) · 1.08 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
type: script
commands:
- desc: "Install dependencies"
cmd: |
apt-get update
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: "Flake 8"
cmd: |
flake8 zmon_aws_agent tests setup.py
- 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-aws-agent:${VERSION}
else
VERSION=${CDP_BUILD_VERSION}
IMAGE=registry-write.opensource.zalan.do/zmon/zmon-aws-agent-unstable:${VERSION}
fi
docker build --tag "$IMAGE" .
docker push "$IMAGE"