-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.star
52 lines (51 loc) · 1.51 KB
/
.cirrus.star
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
load("github.com/cirrus-modules/helpers", "task", "container", "script")
"""
Build
Build
Provision
Configure
DataDog setup
kubectl ns create <NS>
K8s secret apply
Install
build.sh
helm upgrade -n <NS>
"""
def main(ctx):
return [
task(
name="[Build] Build",
instance=container("debian:latest"),
instructions=[script("echo 'terraform apply'")]
),
task(
name="[Build] Provision",
instance=container("debian:latest"),
instructions=[script("echo 'ansible-playbook'")]
),
task(
name="[Configure] DataDog setup",
instance=container("debian:latest"),
instructions=[script("echo 'k apply -f datadog.yaml'")]
),
task(
name="[Configure] kubectl ns create <NS>",
instance=container("debian:latest"),
instructions=[script("echo 'kubectl ns create <NS>'")]
),
task(
name="[Configure] K8s secret apply",
instance=container("debian:latest"),
instructions=[script("echo 'kubectl apply -f secret.yaml'")]
),
task(
name="[Install] build.sh",
instance=container("debian:latest"),
instructions=[script("echo 'build.sh'")]
),
task(
name="[Install] helm upgrade -n <NS>",
instance=container("debian:latest"),
instructions=[script("echo 'helm upgrade -n <NS>'")]
),
]