From 72633dcaa7469c3978118812e3c44bc8e9de9b80 Mon Sep 17 00:00:00 2001 From: John DeAngelis Date: Wed, 4 Dec 2024 16:22:38 -0500 Subject: [PATCH] fix: refresh the jobs with the latest images Signed-off-by: John DeAngelis --- .github/workflows/prod_be_build_and_deploy.yml | 5 +++-- .github/workflows/stg_be_build_and_deploy.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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: