forked from zalando/skipper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
delivery.yaml
38 lines (38 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
34
35
36
37
38
version: "2017-09-20"
pipeline:
- id: build
overlay: ci/golang
type: script
commands:
- desc: build-push
cmd: |
if [[ $CDP_TARGET_BRANCH == master && ! $CDP_PULL_REQUEST_NUMBER ]]; then
RELEASE_VERSION="$(git describe --tags --always --dirty)"
IMAGE="registry-write.opensource.zalan.do/pathfinder/skipper:${RELEASE_VERSION}"
else
IMAGE="registry-write.opensource.zalan.do/pathfinder/skipper-test:${CDP_BUILD_VERSION}"
fi
export IMAGE
make deps shortcheck
git status
git diff
cd packaging && make docker-build && git status && git diff && make docker-push
- id: docs
type: script
overlay: ci/python
commands:
- desc: install deps
cmd: |
pip3 install mkdocs mkdocs-material
- desc: build docs
cmd: |
mkdocs build --strict
shopt -s extglob # needed to use !(pr)
if [ "$CDP_PULL_REQUEST_NUMBER" ]; then
mkdir -p site/pr/#{CDP_PULL_REQUEST_NUMBER}
mv site/!(pr) site/pr/#{CDP_PULL_REQUEST_NUMBER}
fi
artifacts:
- type: docs
name: skipper
path: site