-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (36 loc) · 775 Bytes
/
Makefile
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
default: docs
.PHONY: docs
docs:
cat README.md
build:
set -o errexit; set -o allexport; source .env; set +o allexport; \
terraform plan -out main.tfplan -var-file demo.tfvars; \
terraform apply main.tfplan
.PHONY: agic
agic:
set -o errexit; set -o allexport; source .env; set +o allexport; \
./agic/install.sh; \
cd ..
.phony: services
services:
set -o errexit; \
cd app; \
kubectl apply -f services.yaml; \
cd ..
.phony: pods
pods:
set -o errexit; \
cd app; \
kubectl apply -f pods.yaml; \
cd ..
.phony: delete-apps
delete-apps:
set -o errexit; \
cd app; \
kubectl delete -f pods.yaml; \
kubectl delete -f services.yaml; \
cd ..
destroy:
set -o errexit; \
terraform plan -destroy -out main.destroy.tfplan; \
terraform apply main.destroy.tfplan