File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 1- name : Validate Deployment
1+ name : Validate Deployment v2
22
33on :
44 workflow_run :
55 workflows : ["Build Docker and Optional Push"]
66 types :
77 - completed
88 branches :
9- - main
10- - hotfix
9+ - macae-v2
1110 - dev
1211 schedule :
1312 - cron : " 0 11,23 * * *" # Runs at 11:00 AM and 11:00 PM GMT
@@ -115,19 +114,16 @@ jobs:
115114 - name : Deploy Bicep Template
116115 id : deploy
117116 run : |
118- if [[ "${{ env.BRANCH_NAME }}" == "main " ]]; then
117+ if [[ "${{ env.BRANCH_NAME }}" == "macae-v2 " ]]; then
119118 IMAGE_TAG="latest"
120119 elif [[ "${{ env.BRANCH_NAME }}" == "dev" ]]; then
121120 IMAGE_TAG="dev"
122- elif [[ "${{ env.BRANCH_NAME }}" == "hotfix" ]]; then
123- IMAGE_TAG="hotfix"
124- else
125- IMAGE_TAG="latest"
121+ # elif [[ "${{ env.BRANCH_NAME }}" == "hotfix" ]]; then
122+ # IMAGE_TAG="hotfix"
123+ # else
124+ # IMAGE_TAG="latest"
126125 fi
127126
128- # Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
129- current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
130-
131127 az deployment group create \
132128 --resource-group ${{ env.RESOURCE_GROUP_NAME }} \
133129 --template-file infra/main.bicep \
@@ -142,7 +138,6 @@ jobs:
142138 azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
143139 gptModelCapacity=150 \
144140 createdBy="Pipeline" \
145- tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" \
146141 --output json
147142
148143 - name : Extract Web App and API App URLs
You can’t perform that action at this time.
0 commit comments