diff --git a/.github/workflows/prod_be_build_and_deploy.yml b/.github/workflows/prod_be_build_and_deploy.yml index 5e0dde5641..1e31aea1a5 100644 --- a/.github/workflows/prod_be_build_and_deploy.yml +++ b/.github/workflows/prod_be_build_and_deploy.yml @@ -62,8 +62,9 @@ jobs: azcliversion: latest inlineScript: | # Update job to this image - az containerapp job update -n opre-ops-${{ env.ENVIRONMENT }}-app-data-tools -g opre-ops-${{ env.ENVIRONMENT }}-app-rg --image ghcr.io/hhs/opre-ops/ops-data-tools:${{ github.sha }} - # Start the data-tools job + az containerapp job update -n opre-ops-${{ env.ENVIRONMENT }}-app-up-schema -g opre-ops-${{ env.ENVIRONMENT }}-app-rg --image ghcr.io/hhs/opre-ops/ops-data-tools:${{ github.sha }} + az containerapp job update -n opre-ops-${{ env.ENVIRONMENT }}-app-down-schema -g opre-ops-${{ env.ENVIRONMENT }}-app-rg --image ghcr.io/hhs/opre-ops/ops-data-tools:${{ github.sha }} + # Start the DB schema update job az containerapp job start -n opre-ops-${{ env.ENVIRONMENT }}-app-up-schema -g opre-ops-${{ env.ENVIRONMENT }}-app-rg deploy-backend: diff --git a/.github/workflows/stg_be_build_and_deploy.yml b/.github/workflows/stg_be_build_and_deploy.yml index e763746396..3e396799eb 100644 --- a/.github/workflows/stg_be_build_and_deploy.yml +++ b/.github/workflows/stg_be_build_and_deploy.yml @@ -62,8 +62,9 @@ jobs: azcliversion: latest inlineScript: | # Update job to this image - az containerapp job update -n opre-ops-${{ env.ENVIRONMENT }}-app-data-tools -g opre-ops-${{ env.ENVIRONMENT }}-app-rg --image ghcr.io/hhs/opre-ops/ops-data-tools:${{ github.sha }} - # Start the data-tools job + az containerapp job update -n opre-ops-${{ env.ENVIRONMENT }}-app-up-schema -g opre-ops-${{ env.ENVIRONMENT }}-app-rg --image ghcr.io/hhs/opre-ops/ops-data-tools:${{ github.sha }} + az containerapp job update -n opre-ops-${{ env.ENVIRONMENT }}-app-down-schema -g opre-ops-${{ env.ENVIRONMENT }}-app-rg --image ghcr.io/hhs/opre-ops/ops-data-tools:${{ github.sha }} + # Start the DB schema update job az containerapp job start -n opre-ops-${{ env.ENVIRONMENT }}-app-up-schema -g opre-ops-${{ env.ENVIRONMENT }}-app-rg deploy-backend: