Skip to content

Commit e7f78a9

Browse files
Merge pull request #523 from microsoft/CI-Pipeline-macae
fix: CI Pipeline Validate Deployment - MACAE
2 parents cb448da + f602851 commit e7f78a9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/deploy-waf.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ jobs:
105105
id: deploy
106106
run: |
107107
set -e
108+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
109+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
110+
108111
az deployment group create \
109112
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
110113
--template-file infra/main.bicep \
@@ -118,6 +121,7 @@ jobs:
118121
enablePrivateNetworking=true \
119122
enableScalability=true \
120123
createdBy="Pipeline" \
124+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
121125
122126
123127
- name: Send Notification on Failure

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ jobs:
125125
IMAGE_TAG="latest"
126126
fi
127127
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+
128131
az deployment group create \
129132
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
130133
--template-file infra/main.bicep \
@@ -138,6 +141,7 @@ jobs:
138141
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
139142
gptModelCapacity=150 \
140143
createdBy="Pipeline" \
144+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" \
141145
--output json
142146
143147
- name: Extract Web App and API App URLs

infra/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
180180
tags: {
181181
...allTags
182182
TemplateName: 'MACAE'
183+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
183184
CreatedBy: createdBy
184185
}
185186
}

0 commit comments

Comments
 (0)