File tree Expand file tree Collapse file tree 1 file changed +47
-1
lines changed Expand file tree Collapse file tree 1 file changed +47
-1
lines changed Original file line number Diff line number Diff line change 5
5
types : [published]
6
6
7
7
jobs :
8
- deploy :
8
+ deploy-silver :
9
9
runs-on : ubuntu-22.04
10
10
timeout-minutes : 5
11
11
permissions :
39
39
IMAGE_TAG_BACKEND=${vtag//v} \
40
40
IMAGE_TAG_HANGFIRE=${vtag//v} \
41
41
working-directory : ./helm/main
42
+
43
+ # deploy-emerald:
44
+ # runs-on: ubuntu-22.04
45
+ # timeout-minutes: 5
46
+
47
+ # steps:
48
+ # - name: Checkout ArgoCD Repo
49
+ # id: gitops
50
+ # uses: actions/checkout@v4
51
+ # with:
52
+ # repository: bcgov-c/tenant-gitops-b0471a
53
+ # ref: main
54
+ # token: ${{ secrets.GITOPS }} # `GITOPS` is a secret that contains your PAT
55
+ # - name: Update Helm Values and Commit
56
+ # id: helm
57
+ # run: |
58
+ # pwd
59
+
60
+ # # Get current date and time
61
+ # datetime=$(date +'%Y-%m-%d %H:%M:%S')
62
+ # vtag=${{ github.ref_name }}
63
+
64
+ # echo "Image Tag:"
65
+ # echo ${vtag//v}
66
+
67
+ # # set image tag
68
+ # sed -i "s/tag: .*/tag: ${vtag//v} # Image Updated on $datetime/" deploy/prod_values.yaml
69
+
70
+ # # Commit and push the changes
71
+ # git config --global user.email "ychung-mot@github.com"
72
+ # git config --global user.name "Young-Jin Chung"
73
+
74
+ # git add deploy/prod_values.yaml
75
+
76
+ # pwd
77
+ # # Repackage Helm Chart
78
+ # cd charts/gitops/charts
79
+
80
+ # helm package ../../frontend/
81
+ # helm package ../../backend/
82
+ # helm package ../../hangfire/
83
+
84
+ # git add .
85
+
86
+ # git commit -m "Update image tag to ${vtag//v} on $datetime"
87
+ # git push origin prod
You can’t perform that action at this time.
0 commit comments