Skip to content

Commit 126d190

Browse files
authored
Merge pull request #520 from bcgov/yj
chore: emerald prod deployment
2 parents cc7fbc0 + c127688 commit 126d190

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
jobs:
8-
deploy:
8+
deploy-silver:
99
runs-on: ubuntu-22.04
1010
timeout-minutes: 5
1111
permissions:
@@ -39,3 +39,49 @@ jobs:
3939
IMAGE_TAG_BACKEND=${vtag//v} \
4040
IMAGE_TAG_HANGFIRE=${vtag//v} \
4141
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

0 commit comments

Comments
 (0)