forked from zalando/zally
-
Notifications
You must be signed in to change notification settings - Fork 0
/
delivery.yaml
46 lines (43 loc) · 1.41 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
41
42
43
44
45
46
allow_concurrent_steps: true
version: "2017-09-20"
pipeline:
- id: build-server
type: script
overlay: ci/java11
commands:
- desc: Build server
cmd: |
cd $PWD/server
./gradlew zally-server:build
cache:
paths: [ ~/.gradle/caches, ~/.gradle/wrapper ]
- id: web-ui
type: script
overlay: ci/nodejs-10
commands:
- desc: Build Web UI
cmd: |
cd $PWD/web-ui
npm install -q ; npm test ; npm run build
cache:
paths: [ ~/.npm ]
- id: build-and-push-images
type: script
env:
DOCKER_IMAGE_PREFIX: "pierone.stups.zalan.do/pitchfork"
when:
branch: master
depends_on: [ all_of_the_above ]
commands:
- desc: Building and pushing Zally Server
cmd: |
DOCKER_VERSION="${CDP_TARGET_BRANCH}-${CDP_TARGET_COMMIT_ID:0:8}-${CDP_TARGET_REPOSITORY_COUNTER}"
cd server
docker build -t "${DOCKER_IMAGE_PREFIX}/zally:${DOCKER_VERSION}" .
docker push "${DOCKER_IMAGE_PREFIX}/zally:${DOCKER_VERSION}"
- desc: Building and pushing Zally Web UI Dummy
cmd: |
DOCKER_VERSION="${CDP_TARGET_BRANCH}-${CDP_TARGET_COMMIT_ID:0:8}-${CDP_TARGET_REPOSITORY_COUNTER}"
cd web-ui
docker build -t "${DOCKER_IMAGE_PREFIX}/zally-web-ui-dummy:${DOCKER_VERSION}" .
docker push "${DOCKER_IMAGE_PREFIX}/zally-web-ui-dummy:${DOCKER_VERSION}"