Skip to content

Commit 01c8abc

Browse files
Merge pull request #245 from Harmanpreet-Microsoft/main
ci: minor refinements to deploy.yml
2 parents e0d4010 + 3f8d72e commit 01c8abc

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Deploy-Test-Cleanup Pipeline
33
on:
44
workflow_run:
55
workflows: ["Build Docker and Optional Push"]
6-
types:
7-
- completed
8-
branches:
9-
- main
10-
- dev
11-
- demo
12-
schedule:
13-
- cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT
6+
# types:
7+
# - completed
8+
# branches:
9+
# - main
10+
# - dev
11+
# - demo
12+
# schedule:
13+
# - cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT
1414
workflow_dispatch:
1515

1616
env:
@@ -43,7 +43,6 @@ jobs:
4343
export AZURE_TENANT_ID=${{ secrets.AZURE_TENANT_ID }}
4444
export AZURE_CLIENT_SECRET=${{ secrets.AZURE_CLIENT_SECRET }}
4545
export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
46-
export GPT_MIN_CAPACITY="${{ env.GPT_MIN_CAPACITY }}"
4746
export AZURE_REGIONS="${{ vars.AZURE_REGIONS }}"
4847
chmod +x scripts/checkquota.sh
4948
if ! scripts/checkquota.sh; then
@@ -141,7 +140,6 @@ jobs:
141140
--parameters \
142141
solutionName="${{ env.SOLUTION_PREFIX }}" \
143142
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
144-
capacity=${{ env.GPT_MIN_CAPACITY }} \
145143
imageVersion="${IMAGE_TAG}" \
146144
createdBy="Pipeline" \
147145
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
@@ -427,7 +425,7 @@ jobs:
427425
428426
EMAIL_BODY=$(cat <<EOF
429427
{
430-
"body": "<p>Dear Team,</p><p>We would like to inform you that the DocGen Deployment Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> <a href=\"${RUN_URL}\">${RUN_URL}</a><br></p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"
428+
"body": "<p>Dear Team,</p><p>We would like to inform you that the CodeMod Deployment Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> <a href=\"${RUN_URL}\">${RUN_URL}</a><br></p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>"
431429
}
432430
EOF
433431
)

0 commit comments

Comments
 (0)