-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun.yaml
64 lines (56 loc) · 1.25 KB
/
run.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
init:
app: drlm
sdk: go:1.13
pass: ${env.PASS}
pass-minio: ${env.PASS_MINIO}
pass-core: ${env.PASS_CORE}
docker-name: ${env.DOCKER_NAME}
src: ${env.SRC}
pipeline:
init:
system:
action: run
request: "@system"
tasks: "*"
tls:
wait-for-sshd:
action: nop
sleepTimeMs: 20000
generate-certs:
action: exec:run
target:
URL: ssh://${docker-name}-tls
credentials: drlm
commands:
- rm -rf /tls/*
- /usr/local/bin/generate-certs.sh
env:
ip_minio: ${docker-name}-minio
ip_db: ${docker-name}-db
ip_core: ${docker-name}-drlm-core
stop:
action: docker:stop
name: ${docker-name}-tls
restart-with-new-certs:
stop:
action: docker:stop
names:
- ${docker-name}-minio
# - ${docker-name}-db
start:
action: docker:start
names:
- ${docker-name}-minio
# - ${docker-name}-db
datastore:
action: run
request: "@datastore"
tasks: "*"
app:
action: run
request: "@app"
tasks: "*"
destroy:
system: run
request: "@system"
tasks: destroy