-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
48 lines (40 loc) · 1.25 KB
/
Taskfile.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
46
47
48
version: "3"
includes:
base: ../Taskfile.yml
tasks:
setup:
cmds:
- terraform init
- terraform apply --target kind_cluster.default -auto-approve
- bash kind-with-registry.sh
- task: base:docker:build
vars:
SERVICE: airflow
DOCKERFILE: ../airflow
- task: base:docker:tag
vars:
SERVICE: airflow
- task: base:docker:push
vars:
SERVICE: airflow
- terraform apply -auto-approve
expose:localstack:
cmds:
- kubectl port-forward svc/localstack 4566:4566 --namespace localstack
setup:localstack-services:
cmds:
- terraform -chdir=localstack-services init
- terraform -chdir=localstack-services apply -auto-approve
teardown:localstack-services:
cmds:
- terraform -chdir=localstack-services destroy -auto-approve
teardown:
cmds:
- kind delete cluster --name {{.PROJECT}}
- rm -f {{.PROJECT}}-config terraform.tfstate terraform.tfstate.backup
visualize:
cmds:
- terraform graph | docker run --rm -i nshine/dot dot -Tsvg > graph.svg
visualize:localstack-services:
cmds:
- terraform -chdir=localstack-services graph | docker run --rm -i nshine/dot dot -Tsvg > localstack-services/graph.svg