File tree Expand file tree Collapse file tree 2 files changed +32
-13
lines changed
Expand file tree Collapse file tree 2 files changed +32
-13
lines changed Original file line number Diff line number Diff line change @@ -143,4 +143,5 @@ jobs:
143143 uses : ./.github/workflows/k8s-reset-data.yml
144144 with :
145145 environment : ${{ inputs.environment }}
146+ chart-branch : ${{ inputs.chart-branch }}
146147 secrets : inherit
Original file line number Diff line number Diff line change 11name : Reset environment
22run-name : " Reset ${{ inputs.environment }} environment"
33on :
4- workflow_dispatch :
5- inputs :
6- environment :
7- description : " Target environment"
8- required : true
9- type : string
10- workflow_call :
11- inputs :
12- environment :
13- type : string
4+ workflow_dispatch :
5+ inputs :
6+ environment :
7+ description : " Target environment"
8+ required : true
9+ type : string
10+ chart-branch :
11+ description : ' Helm chart version to deploy'
12+ required : false
13+ default : ' develop'
14+ workflow_call :
15+ inputs :
16+ environment :
17+ type : string
18+ chart-branch :
19+ type : string
1420jobs :
1521 prepare :
1622 outputs :
@@ -58,12 +64,24 @@ jobs:
5864 matrix :
5965 job-name :
6066 - data-cleanup
61- - postgres-on-update-core
62- - postgres-on-update -analytics
67+ - postgres-on-deploy
68+ - data-migration -analytics
6369 - data-migration
6470 - data-seed
6571 - elasticsearch-reindex
6672 steps :
73+ - name : Checkout repo
74+ uses : actions/checkout@v5
75+ # FIXME: Update to charts repository once available
76+ - name : Checkout infrastructure repository
77+ uses : actions/checkout@v5
78+ with :
79+ repository : opencrvs/infrastructure
80+ path : infrastructure
81+ ref : ${{ inputs.chart-branch }}
82+ - name : Verify branch status ${{ inputs.chart-branch }}
83+ working-directory : infrastructure
84+ run : git status
6785 - name : Download helm release values file into /tmp/opencrvs-${{ inputs.environment }}.json
6886 uses : actions/download-artifact@v4
6987 with :
7795 --set data_seed.enabled=true \
7896 --namespace ${namespace} \
7997 -s templates/${{ matrix.job-name }}-job.yaml \
80- oci://ghcr.io/opencrvs /opencrvs-services | kubectl apply -n ${namespace} --wait=true -f -
98+ infrastructure/charts /opencrvs-services | kubectl apply -n ${namespace} --wait=true -f -
8199 - name : Checking ${{ matrix.job-name }} job status
82100 run : |
83101 while true; do
You can’t perform that action at this time.
0 commit comments