Skip to content

Commit 0aee32d

Browse files
Fixed CI Pipeline Validate Deployment - Codmod
1 parent 835f606 commit 0aee32d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ jobs:
126126
IMAGE_TAG="latest"
127127
fi
128128
129+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
130+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
131+
129132
az deployment group create \
130133
--name ${{ env.SOLUTION_PREFIX }}-deployment \
131134
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -136,7 +139,8 @@ jobs:
136139
useWafAlignedArchitecture=false \
137140
capacity=${{ env.GPT_MIN_CAPACITY }} \
138141
imageVersion="${IMAGE_TAG}" \
139-
createdBy="Pipeline"
142+
createdBy="Pipeline" \
143+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
140144
- name: Assign Contributor role to Service Principal
141145
if: always()
142146
run: |

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
143143
properties: {
144144
tags: {
145145
...allTags
146-
TemplateName: 'Code Modernization'
146+
TemplateName: enablePrivateNetworking ? 'Code Modernization - WAF' : 'Code Modernization'
147147
CreatedBy: createdBy
148148
}
149149
}

0 commit comments

Comments
 (0)