-
Notifications
You must be signed in to change notification settings - Fork 72
/
delivery.yaml
37 lines (34 loc) · 1.19 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
version: "2017-09-20"
notifications:
hipchat:
rooms:
- cdp-notifications-test
pipeline:
- id: build
type: script
vm_config:
type: linux
image: cdp-runtime/python-3.9
commands:
- desc: "Install dependencies"
cmd: pip install -r requirements.txt
- desc: "Run Tests"
cmd: python3 setup.py test
- desc: "Check code style"
cmd: python3 setup.py flake8
- desc: "Build docker image that will upload package"
cmd: |
VERSION=$(./next-version)
if [[ -z "${CDP_PULL_REQUEST_NUMBER}" ]]; then
DOCKER_IMAGE="pierone.stups.zalan.do/automata/senza-release:${CDP_TARGET_REPOSITORY_COUNTER}"
else
DOCKER_IMAGE="pierone.stups.zalan.do/automata/senza-release-pr:snapshot"
fi
docker build --build-arg VERSION="$VERSION" -t "$DOCKER_IMAGE" .
if [[ -z "${CDP_PULL_REQUEST_NUMBER}" ]]; then
docker push "$DOCKER_IMAGE"
git log -1 --pretty=%B > CHANGELOG
# TODO upload the wheel package
git gh-release --message-from-file CHANGELOG $VERSION
fi
# The actual release is done by a pipeline in Zalando's Internal Github Enterprise