Skip to content

Commit a94d749

Browse files
committed
Rename jobs within pipeline
1 parent 61a9d73 commit a94d749

File tree

2 files changed

+32
-13
lines changed

2 files changed

+32
-13
lines changed

.github/workflows/k8s-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/k8s-reset-data.yml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
name: Reset environment
22
run-name: "Reset ${{ inputs.environment }} environment"
33
on:
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
1420
jobs:
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:
@@ -77,7 +95,7 @@ jobs:
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

0 commit comments

Comments
 (0)