-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdeploy-models.mk
57 lines (40 loc) · 1.96 KB
/
deploy-models.mk
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
.PHONY: create-deploy-model
create-deploy-model:
kubectl create configmap models --from-file=CamundaProcess.bpmn=$(pathToCamundaProcessBpmnFile) -n $(namespace)
kubectl apply -f $(root)/include/zbctl-deploy-job.yaml -n $(namespace)
kubectl wait --for=condition=complete job/zbctl-deploy --timeout=10s -n $(namespace)
.PHONY: create-deploy-model-with-auth
create-deploy-model-with-auth:
kubectl create configmap models --from-file=CamundaProcess.bpmn=$(pathToCamundaProcessBpmnFile) -n $(namespace)
kubectl apply -f $(root)/include/zbctl-deploy-job-with-auth.yaml -n $(namespace)
kubectl wait --for=condition=complete job/zbctl-deploy --timeout=10s -n $(namespace)
.PHONY: clean-deploy-model
clean-deploy-model:
kubectl delete configmap models -n $(namespace)
kubectl delete -f $(root)/include/zbctl-deploy-job.yaml -n $(namespace)
.PHONY: deploy-model
deploy-model: create-deploy-model-with-auth clean-deploy-model
# Simple Inbound Connector Process
.PHONY: set-simple-inbound
set-simple-inbound:
$(eval pathToCamundaProcessBpmnFile := $(root)/bpmn/simple_inbound_connector.bpmn)
.PHONY: deploy-simple-inbound
deploy-simple-inbound: set-simple-inbound deploy-model
# Simple SendGrid Process
.PHONY: set-simple-sendgrid
set-simple-sendgrid:
$(eval pathToCamundaProcessBpmnFile := $(root)/bpmn/simple_sendgrid.bpmn)
.PHONY: deploy-simple-sendgrid
deploy-simple-sendgrid: set-simple-sendgrid deploy-model
# Benchmark Process
.PHONY: set-benchmark-process
set-benchmark-process:
$(eval pathToCamundaProcessBpmnFile := $(root)/bpmn/BenchmarkProcess.bpmn)
.PHONY: deploy-benchmark-process
deploy-benchmark-process: set-benchmark-process deploy-model
# OpenAI ChatGpt Process
.PHONY: set-simple-openai
set-simple-openai:
$(eval pathToCamundaProcessBpmnFile := $(root)/bpmn/simple_openai.bpmn)
.PHONY: deploy-simple-openai
deploy-simple-openai: set-simple-openai deploy-model