1
+ apiVersion : kargo.akuity.io/v1alpha1
2
+ kind : Stage
3
+ metadata :
4
+ name : dev
5
+ namespace : kargo-guestbook
6
+ spec :
7
+ requestedFreight :
8
+ - origin :
9
+ kind : Warehouse
10
+ name : base
11
+ sources :
12
+ direct : true
13
+ promotionTemplate :
14
+ spec :
15
+ steps :
16
+ - uses : git-clone
17
+ config :
18
+ repoURL : https://github.com/reikamoon/eks-tutorial.git
19
+ checkout :
20
+ - fromFreight : true
21
+ path : ./src
22
+ - branch : main
23
+ path : ./out
24
+
25
+ - uses : copy
26
+ config :
27
+ inPath : ./src/base/values.yaml
28
+ outPath : ./out/guestbook/values-dev.yaml
29
+
30
+ # Commit the changes to the Git repository.
31
+ - uses : git-commit
32
+ as : commit
33
+ config :
34
+ path : ./out
35
+ messageFromSteps :
36
+ - update-image
37
+
38
+ # Push the changes to the Git repository.
39
+ - uses : git-push
40
+ config :
41
+ path : ./out
42
+
43
+ - uses : argocd-update
44
+ config :
45
+ apps :
46
+ - name : guestbook-dev
47
+ sources :
48
+ - repoURL : https://github.com/reikamoon/eks-tutorial.git
49
+ desiredCommitFromStep : commit
50
+ ---
51
+ apiVersion : kargo.akuity.io/v1alpha1
52
+ kind : Stage
53
+ metadata :
54
+ name : stg
55
+ namespace : kargo-guestbook
56
+ spec :
57
+ requestedFreight :
58
+ - origin :
59
+ kind : Warehouse
60
+ name : base
61
+ sources :
62
+ stages :
63
+ - dev
64
+ promotionTemplate :
65
+ spec :
66
+ steps :
67
+ - uses : git-clone
68
+ config :
69
+ repoURL : https://github.com/reikamoon/eks-tutorial.git
70
+ checkout :
71
+ - fromFreight : true
72
+ path : ./src
73
+ - branch : main
74
+ path : ./out
75
+
76
+ - uses : copy
77
+ config :
78
+ inPath : ./src/base/values.yaml
79
+ outPath : ./out/guestbook/values-stg.yaml
80
+
81
+ # Commit the changes to the Git repository.
82
+ - uses : git-commit
83
+ as : commit
84
+ config :
85
+ path : ./out
86
+ messageFromSteps :
87
+ - update-image
88
+
89
+ # Push the changes to the Git repository.
90
+ - uses : git-push
91
+ config :
92
+ path : ./out
93
+
94
+ - uses : argocd-update
95
+ config :
96
+ apps :
97
+ - name : guestbook-stg
98
+ sources :
99
+ - repoURL : https://github.com/reikamoon/eks-tutorial.git
100
+ desiredCommitFromStep : commit
101
+ ---
102
+ apiVersion : kargo.akuity.io/v1alpha1
103
+ kind : Stage
104
+ metadata :
105
+ name : prd
106
+ namespace : kargo-guestbook
107
+ spec :
108
+ requestedFreight :
109
+ - origin :
110
+ kind : Warehouse
111
+ name : base
112
+ sources :
113
+ stages :
114
+ - stg
115
+ promotionTemplate :
116
+ spec :
117
+ steps :
118
+ - uses : git-clone
119
+ config :
120
+ repoURL : https://github.com/reikamoon/eks-tutorial.git
121
+ checkout :
122
+ - fromFreight : true
123
+ path : ./src
124
+ - branch : main
125
+ path : ./out
126
+
127
+ - uses : copy
128
+ config :
129
+ inPath : ./src/base/values.yaml
130
+ outPath : ./out/guestbook/values-prd.yaml
131
+
132
+ # Commit the changes to the Git repository.
133
+ - uses : git-commit
134
+ as : commit
135
+ config :
136
+ path : ./out
137
+ messageFromSteps :
138
+ - update-image
139
+
140
+ # Push the changes to the Git repository.
141
+ - uses : git-push
142
+ config :
143
+ path : ./out
144
+
145
+ - uses : argocd-update
146
+ config :
147
+ apps :
148
+ - name : guestbook-prd
149
+ sources :
150
+ - repoURL : https://github.com/<repo>
151
+ desiredCommitFromStep : commit
0 commit comments