-
Notifications
You must be signed in to change notification settings - Fork 145
/
delivery.yaml
36 lines (35 loc) · 1005 Bytes
/
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
version: "2017-09-20"
schedule: "0 7 * * 1" # At 07:00 UTC on Mondays
allow_concurrent_steps: true
pipeline:
- id: build-server
type: script
vm_config:
type: linux
image: cdp-runtime/jdk17
size: large
commands:
- desc: Build server
cmd: |
cd ${PWD}/server;
./gradlew --console=plain build;
if [ -n "${CDP_PULL_REQUEST_NUMBER}" ]; then
echo "We're in a pull request, aborting."; exit 0;
fi;
PREFIX="pierone.stups.zalan.do/builder-knowledge";
IMAGE="${PREFIX}/zally:${CDP_BUILD_VERSION}";
docker build -t "${IMAGE}" . && docker push "${IMAGE}";
cache:
paths: [ ~/.gradle/caches, ~/.gradle/wrapper ]
- id: web-ui
type: script
vm_config:
type: linux
image: cdp-runtime/nodejs-18
commands:
- desc: Build Web UI
cmd: |
cd ${PWD}/web-ui;
yarn install -q; yarn test; yarn build;
cache:
paths: [ ~/.npm ]