File tree Expand file tree Collapse file tree 8 files changed +77
-101
lines changed
Expand file tree Collapse file tree 8 files changed +77
-101
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,12 @@ spec:
1313 sources :
1414 stages :
1515 - uat
16- verification :
17- analysisTemplates :
18- - name : flux-reconciler
19- args :
20- - name : appname
21- value : gobg-prod
22- promotionMechanisms :
23- gitRepoUpdates :
24- - repoURL : https://github.com/christianh814/kargo-4-flux
25- writeBranch : stage/prod
26- argoCDAppUpdates : []
16+ promotionTemplate :
17+ spec :
18+ vars :
19+ - name : targetBranch
20+ value : prod
21+ steps :
22+ - task :
23+ name : gobg-promote
24+ as : promote-to-prod
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : kargo.akuity.io/v1alpha1
3+ kind : PromotionTask
4+ metadata :
5+ name : gobg-promote
6+ namespace : kargo-demo
7+ spec :
8+ vars :
9+ - name : repoURL
10+ value : https://github.com/christianh814/kargo-4-flux
11+ - name : sourceBranch
12+ value : main
13+ - name : targetBranch
14+
15+ steps :
16+
17+ - uses : git-clone
18+ as : clone
19+ config :
20+ repoURL : ${{ vars.repoURL }}
21+ checkout :
22+ - branch : ${{ vars.sourceBranch }}
23+ path : ./src
24+ - branch : stage/${{ vars.targetBranch }}
25+ create : true
26+ path : ./dst
27+
28+ - uses : git-clear
29+ as : clear
30+ config :
31+ path : ./dst
32+
33+ - uses : kustomize-build
34+ as : build-manifests
35+ config :
36+ path : ./src/app/stages/${{ vars.targetBranch }}
37+ outPath : ./dst/${{ vars.targetBranch }}.yaml
38+
39+ - uses : git-commit
40+ as : commit
41+ config :
42+ path : ./dst
43+ messageFromSteps :
44+ - build-manifests
45+
46+ - uses : git-push
47+ as : push
48+ config :
49+ path : ./dst
50+ targetBranch : stage/${{ vars.targetBranch }}
Original file line number Diff line number Diff line change @@ -12,14 +12,12 @@ spec:
1212 name : kargo-demo
1313 sources :
1414 direct : true
15- verification :
16- analysisTemplates :
17- - name : flux-reconciler
18- args :
19- - name : appname
20- value : gobg-test
21- promotionMechanisms :
22- gitRepoUpdates :
23- - repoURL : https://github.com/christianh814/kargo-4-flux
24- writeBranch : stage/test
25- argoCDAppUpdates : []
15+ promotionTemplate :
16+ spec :
17+ vars :
18+ - name : targetBranch
19+ value : test
20+ steps :
21+ - task :
22+ name : gobg-promote
23+ as : promote-to-test
Original file line number Diff line number Diff line change @@ -13,14 +13,12 @@ spec:
1313 sources :
1414 stages :
1515 - test
16- verification :
17- analysisTemplates :
18- - name : flux-reconciler
19- args :
20- - name : appname
21- value : gobg-uat
22- promotionMechanisms :
23- gitRepoUpdates :
24- - repoURL : https://github.com/christianh814/kargo-4-flux
25- writeBranch : stage/uat
26- argoCDAppUpdates : []
16+ promotionTemplate :
17+ spec :
18+ vars :
19+ - name : targetBranch
20+ value : uat
21+ steps :
22+ - task :
23+ name : gobg-promote
24+ as : promote-to-uat
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments