Skip to content

Commit ccd3359

Browse files
Merge pull request #929 from microsoft/main
fix: Downmerge from main to dev-v4
2 parents cc2d58c + 63a9979 commit ccd3359

File tree

3 files changed

+125
-201
lines changed

3 files changed

+125
-201
lines changed

.github/workflows/deploy-orchestrator.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,25 @@ jobs:
104104
TEST_SUITE: ${{ inputs.trigger_type == 'workflow_dispatch' && inputs.run_e2e_tests || 'GoldenPath-Testing' }}
105105
secrets: inherit
106106

107+
cleanup-deployment:
108+
if: "!cancelled() && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)"
109+
needs: [docker-build, deploy, e2e-test]
110+
uses: ./.github/workflows/job-cleanup-deployment.yml
111+
with:
112+
runner_os: ${{ inputs.runner_os }}
113+
trigger_type: ${{ inputs.trigger_type }}
114+
cleanup_resources: ${{ inputs.cleanup_resources }}
115+
existing_webapp_url: ${{ inputs.existing_webapp_url }}
116+
RESOURCE_GROUP_NAME: ${{ needs.deploy.outputs.RESOURCE_GROUP_NAME }}
117+
AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }}
118+
AZURE_ENV_OPENAI_LOCATION: ${{ needs.deploy.outputs.AZURE_ENV_OPENAI_LOCATION }}
119+
ENV_NAME: ${{ needs.deploy.outputs.ENV_NAME }}
120+
IMAGE_TAG: ${{ needs.deploy.outputs.IMAGE_TAG }}
121+
secrets: inherit
122+
107123
send-notification:
108124
if: "!cancelled()"
109-
needs: [docker-build, deploy, e2e-test]
125+
needs: [docker-build, deploy, e2e-test, cleanup-deployment]
110126
uses: ./.github/workflows/job-send-notification.yml
111127
with:
112128
trigger_type: ${{ inputs.trigger_type }}
@@ -121,20 +137,5 @@ jobs:
121137
QUOTA_FAILED: ${{ needs.deploy.outputs.QUOTA_FAILED }}
122138
TEST_SUCCESS: ${{ needs.e2e-test.outputs.TEST_SUCCESS }}
123139
TEST_REPORT_URL: ${{ needs.e2e-test.outputs.TEST_REPORT_URL }}
124-
secrets: inherit
125-
126-
cleanup-deployment:
127-
if: "!cancelled() && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)"
128-
needs: [docker-build, deploy, e2e-test]
129-
uses: ./.github/workflows/job-cleanup-deployment.yml
130-
with:
131-
runner_os: ${{ inputs.runner_os }}
132-
trigger_type: ${{ inputs.trigger_type }}
133-
cleanup_resources: ${{ inputs.cleanup_resources }}
134-
existing_webapp_url: ${{ inputs.existing_webapp_url }}
135-
RESOURCE_GROUP_NAME: ${{ needs.deploy.outputs.RESOURCE_GROUP_NAME }}
136-
AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }}
137-
AZURE_ENV_OPENAI_LOCATION: ${{ needs.deploy.outputs.AZURE_ENV_OPENAI_LOCATION }}
138-
ENV_NAME: ${{ needs.deploy.outputs.ENV_NAME }}
139-
IMAGE_TAG: ${{ needs.deploy.outputs.IMAGE_TAG }}
140+
cleanup_result: ${{ needs.cleanup-deployment.result }}
140141
secrets: inherit

0 commit comments

Comments
 (0)