-
Notifications
You must be signed in to change notification settings - Fork 0
/
setpipeline.sh
42 lines (35 loc) · 1.43 KB
/
setpipeline.sh
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
#!/bin/sh
echo "---------------------------------------"
echo "--------Starting Pipeline...---------0%"
echo "---------------------------------------"
echo "---------------------------------------"
echo "-------Deploy git clone Task---------20%"
echo "---------------------------------------"
# deploy task - git clone
kubectl apply -f task/gitclone.yaml
echo "---------------------------------------"
echo "--Deploy Image build & push Task----40%"
echo "---------------------------------------"
# deploy task - image build & push
kubectl apply -f task/kaniko.yaml
echo "---------------------------------------"
echo "-------Deploy Kubecommand Task------60%"
echo "---------------------------------------"
# deploy taks - kubernetes deploy
kubectl apply -f task/kubecommand.yaml
echo "---------------------------------------"
echo "------------Deploy Pipeline---------80%"
echo "---------------------------------------"
# deploy pipeline
kubectl apply -f pipeline/pipeline.yaml
echo "---------------------------------------"
echo "------------Deploy Trigger----------90%"
echo "---------------------------------------"
# deploy trigger
kubectl apply -f trigger/trigerbinding.yaml
kubectl apply -f trigger/trigertemplate.yaml
kubectl apply -f trigger/eventlistener.yaml
kubectl apply -f trigger/ingress-trigger.yaml
echo "---------------------------------------"
echo "-------Watch Dashboard for 100%--------"
echo "---------------------------------------"