Pidp 1128 remove doctors of bc from image for pas (#648) #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy DB Migration - Dev | |
on: | |
push: | |
branches: [develop] | |
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: | |
helm-deployment: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install CLI tools from GitHub | |
uses: redhat-actions/openshift-tools-installer@v1 | |
with: | |
oc: "4" | |
- 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 | |
run: | | |
oc project f088b1-dev | |
echo deleting dev-webapi-migrations job | |
oc delete job/dev-webapi-migrations --ignore-not-found | |
echo applying web-api-migration template... | |
helm template dev charts/webapi -n f088b1-dev --values ./deploy/dev_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -n f088b1-dev -f - | |
echo deleting dev-plr-intake-migrations job | |
oc delete job/dev-plr-intake-migrations --ignore-not-found | |
echo applying plr-intake-migration template... | |
helm template dev charts/plr-intake -n f088b1-dev --values ./deploy/dev_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -n f088b1-dev -f - |