-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathcider-ci.yml
45 lines (35 loc) · 932 Bytes
/
cider-ci.yml
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
jobs:
deploy-demo:
name: Deploy and reset data on https://demo.leihs.zhdk.ch/
run_when:
"deploy and reset every night":
type: cron
value: "00 21 * * *"
branch_include_match: ^master$
rerun: true
context:
task_defaults:
git_options:
submodules:
include_match: ^.*$
traits:
asdf: true
zhdk-leihs-deploy: true
tasks:
deploy:
scripts:
deploy:
timeout: 1 Hour
body: |
#/usr/bin/env bash
set -euo pipefail
./bin/deploy-leihs
restore_demo:
timeout: 20 Minutes
start_when:
deployed:
script_key: deploy
body: |
#/usr/bin/env bash
set -euo pipefail
./bin/restore-demo