-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
30 lines (28 loc) · 1.33 KB
/
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
# Help
.PHONY: default
default:
@echo "Please specify a build target. The choices are:"
@echo " spin-up: Create the ci example on a kubernetes cluster"
@echo " tear-down: Remove the ci example from kubernetes cluster"
.PHONY: spin-up
spin-up:
@echo "============= Spinning-up CI example ============="
kubectl apply -f bootstrap/argo-events/installation.yaml
kubectl apply -f bootstrap/argo-workflows/installation.yaml
kubectl apply -f bootstrap/argo-events/event-bus.yaml
kubectl apply -f bootstrap/argo-events/github-access-secret.yaml
kubectl apply -f bootstrap/argo-events/event-source.yaml
kubectl apply -f bootstrap/argo-workflows/doubler-template.yaml
kubectl apply -f bootstrap/argo-workflows/doubler-assertion.yaml
kubectl apply -f bootstrap/argo-events/sensor.yaml
.PHONY: tear-down
tear-down:
@echo "============= Tearing-down CI example ============="
kubectl delete -f bootstrap/argo-events/sensor.yaml
kubectl delete -f bootstrap/argo-workflows/doubler-assertion.yaml
kubectl delete -f bootstrap/argo-workflows/doubler-template.yaml
kubectl delete -f bootstrap/argo-events/event-source.yaml
kubectl delete -f bootstrap/argo-events/github-access-secret.yaml
kubectl delete -f bootstrap/argo-events/event-bus.yaml
kubectl delete namespace argo-events
kubectl delete namespace argo