-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (30 loc) · 1.41 KB
/
main-deploy-db-migration.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy DB Migration - Prod
on:
push:
branches: [main]
workflow_dispatch:
# This will terminate builds that are previously, but continuing to run. Saves GHA hours.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
db-migration-gold:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v1
- name: Authenticate and set context
uses: redhat-actions/[email protected]
with:
openshift_server_url: ${{secrets.GOLD_OPENSHIFT_CLUSTER_URL}}
openshift_token: ${{secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN}}
- name: deply db migration job - Gold
run: |
oc project f088b1-prod
echo deleting prod-webapi-migrations job
oc delete job/prod-webapi-migrations -n f088b1-prod --ignore-not-found
echo applying web-api-migration template...
helm template prod charts/webapi -n f088b1-prod --values ./deploy/prod_values.yaml -s templates/migrations.yaml --wait --debug | oc apply -n f088b1-prod -f -
echo deleting prod-plr-intake-migrations job
oc delete job/prod-plr-intake-migrations -n f088b1-prod --ignore-not-found
echo applying plr-intake-migration template...
helm template prod charts/plr-intake -n f088b1-prod --values ./deploy/prod_values.yaml -s templates/migrations.yaml --wait --debug | oc apply -n f088b1-prod -f -