Skip to content

Commit 00b5f61

Browse files
Merge pull request #1 from christianh814/v1.2
updating for v1.2
2 parents 37203ef + 0fd737f commit 00b5f61

File tree

8 files changed

+77
-101
lines changed

8 files changed

+77
-101
lines changed

kargo/pipeline/prod-stage.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff 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

kargo/pipeline/promotiontask.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 }}

kargo/pipeline/test-stage.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff 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

kargo/pipeline/uat-stage.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff 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

kargo/reconciler/analysistemplate-reconciler.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

kargo/reconciler/clusterrole-fluxtoolbox.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

kargo/reconciler/clusterrolebinding-fluxtoolbox.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

kargo/reconciler/serviceaccount-fluxtoolbox.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)