-
Notifications
You must be signed in to change notification settings - Fork 10
/
.tln.conf
88 lines (85 loc) · 2.12 KB
/
.tln.conf
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
const path = require('path');
const fs = require('fs');
module.exports = {
options: async (tln, args) => {},
env: async (tln, env) => {
env.TLN_UID = 'io.project1';
env.TLN_VERSION = fs.readFileSync(path.join(__dirname, 'version'), 'utf8').trim();
env.TLN_DOCKER_REGISTRY = 'registry.digitalocean.com/projects-cr';
},
dotenvs: async (tln) => [],
inherits: async (tln) => [],
depends: async (tln) => [],
steps: async (tln) => [
{ id: 'prereq-app', builder: async (tln, script) => {
script.set([`
tln install web/portal:services/auth --depends
`]);
}
},
{ id: 'init-app', builder: async (tln, script) => {
script.set([`
tln init web/portal
tln get services/auth
`]);
}
},
{ id: 'build-app', builder: async (tln, script) => {
script.set([`
tln build web/portal:services/auth
`]);
}
},
{ id: 'test-app', builder: async (tln, script) => {
script.set([`
tln test web/portal:services/auth
`]);
}
},
{ id: 'package-app', builder: async (tln, script) => {
script.set([`
tln docker-build:docker-tag:docker-push web/portal:services/auth
docker images
`]);
}
},
{ id: 'construct-infr', builder: async (tln, script) => {
script.set([`
tln construct ii/do
tln exec ii/do -c "tln nginx-ingress-install@k8s app"
`]);
}
},
{ id: 'status-infr', builder: async (tln, script) => {
script.set([`
tln exec ii/do -c "tln nginx-ingress-status@k8s app"
`]);
}
},
{ id: 'deploy-app', builder: async (tln, script) => {
script.set([`
tln create-secrets app
tln exec ii/do -c "tln deploy app"
`]);
}
},
{ id: 'e2e-app', builder: async (tln, script) => {
script.set([`
`]);
}
},
{ id: 'undeploy-app', builder: async (tln, script) => {
script.set([`
tln exec ii/do -c "tln undeploy app"
`]);
}
},
{ id: 'deconstruct-infr', builder: async (tln, script) => {
script.set([`
tln deconstruct ii/do
`]);
}
},
],
components: async (tln) => []
}