-
Notifications
You must be signed in to change notification settings - Fork 20
/
sample-workflow.yml
88 lines (87 loc) · 2.43 KB
/
sample-workflow.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: v1
description: Workflow to echo a nice hello world message to the logs
steps:
- name: Step-1-Provision-K8s-cluster
description: ""
image: alpine:latest
input:
- echo "Hello world. I am Step 1"
- sleep 5
- name: Step-2-Notify-team
description: ""
image: alpine:latest
input:
- echo "Hello world. I am Step 2"
- sleep 2
dependsOn:
- Step-1-Provision-K8s-cluster
- name: Step-3-Deploy-supporting-services
description: ""
image: alpine:latest
input:
- echo "Hello world. I am Step 3"
- sleep 2
dependsOn:
- Step-1-Provision-K8s-cluster
- name: Step-4-Deploy-application-bits-to-Stage
description: ""
image: alpine:latest
input:
- echo "Hello world. I am Step 4"
- sleep 5
dependsOn:
- Step-3-Deploy-supporting-services
- name: Step-5-Manual-approval-to-Prod
description: ""
image: alpine:latest
input:
- echo "Hello world. I am Step 5"
- sleep 2
- echo "Waiting on some manual approval from approvers @kenazk"
- sleep 3
dependsOn:
- Step-4-Deploy-application-bits-to-Stage
- name: Step-6-Adjust-traffic-throttle-by-10-percent
description: ""
image: alpine:latest
input:
- echo "Hello world. I am Step 6"
dependsOn:
- Step-5-Manual-approval-to-Prod
- name: Step-7-Manual-approval-to-Prod
description: ""
image: alpine:latest
input:
- echo "Hello world. I am Step 7"
dependsOn:
- Step-6-Adjust-traffic-throttle-by-10-percent
- name: Step-4a-Notify-team
description: ""
image: alpine:latest
input:
- echo "Deployment to stage is complete. Please verify application instance."
- sleep 2
dependsOn:
- Step-4-Deploy-application-bits-to-Stage
- name: Step-5a-Update-JIRA-ticket-with-deployment-time
description: ""
image: alpine:latest
input:
- echo "Update to stage complete"
- sleep 3
dependsOn:
- Step-5-Manual-approval-to-Prod
- name: Step-8-Adjust-traffic-to-100-percent
image: alpine:latest
input:
- echo "Traffic adjusted to 100% - Fully deployed"
- sleep 3
dependsOn:
- Step-7-Manual-approval-to-Prod
- name: Step-9-Notify-team-deployment-complete
image: alpine:latest
input:
- echo "Team notified via Slack, email - deployment complete"
- sleep 2
dependsOn:
- Step-8-Adjust-traffic-to-100-percent