Merge branch 'develop' into test #18
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 - Test | |
on: | |
push: | |
branches: [test] | |
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: Authenticate and set context | |
uses: redhat-actions/oc-login@v1.1 | |
with: | |
openshift_server_url: ${{secrets.OPENSHIFT_CLUSTER_URL}} | |
openshift_token: ${{secrets.OPENSHIFT_PIPELINE_SERVICE_ACCOUNT_TOKEN}} | |
- name: deply db migration job into d8a8f9-test | |
run: | | |
oc project d8a8f9-test | |
echo deleting test-webapi-migrations job | |
oc delete job/test-webapi-migrations --ignore-not-found | |
echo applying web-api-migration template... | |
helm template test charts/webapi -n d8a8f9-test --values ./deploy/test_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -f - | |
echo deleting test-plr-intake-migrations job | |
oc delete job/test-plr-intake-migrations --ignore-not-found | |
echo applying plr-intake-migration template... | |
helm template test charts/plr-intake -n d8a8f9-test --values ./deploy/test_values.yaml -s templates/migrations.yaml --wait --debug| oc apply -f - |