Skip to content

Commit 6a56b26

Browse files
Merge pull request #529 from microsoft/CI-Pipeline-macae-v3
fix: added new 'type' tag for WAF and Non-WAF deployement
2 parents 015b55a + c4ae122 commit 6a56b26

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.github/workflows/deploy-waf.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ jobs:
105105
id: deploy
106106
run: |
107107
set -e
108+
109+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
110+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
111+
108112
az deployment group create \
109113
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
110114
--template-file infra/main.bicep \
@@ -118,6 +122,7 @@ jobs:
118122
enablePrivateNetworking=true \
119123
enableScalability=true \
120124
createdBy="Pipeline" \
125+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
121126
122127
123128
- 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 \
@@ -139,6 +142,7 @@ jobs:
139142
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
140143
gptModelCapacity=150 \
141144
createdBy="Pipeline" \
145+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" \
142146
--output json
143147
144148
- 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
@@ -232,6 +232,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
232232
tags: {
233233
...allTags
234234
TemplateName: 'MACAE'
235+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
235236
CreatedBy: createdBy
236237
}
237238
}

infra/main_custom.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
232232
tags: {
233233
...allTags
234234
TemplateName: 'MACAE'
235+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
235236
CreatedBy: createdBy
236237
}
237238
}

0 commit comments

Comments
 (0)