Skip to content

Commit 313e347

Browse files
added tags for Validate Deployment Pipeline
1 parent 0c018ec commit 313e347

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- main
1010
- dev
1111
- demo
12+
- CI-Pipeline-docgen
1213

1314
schedule:
1415
- cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT
@@ -135,6 +136,9 @@ jobs:
135136
IMAGE_TAG="latest_waf"
136137
fi
137138
139+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
140+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
141+
138142
az deployment group create \
139143
--name ${{ env.SOLUTION_PREFIX }}-deployment \
140144
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -150,7 +154,8 @@ jobs:
150154
embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} \
151155
azureAiServiceLocation=${{ env.AZURE_LOCATION }} \
152156
imageTag="${IMAGE_TAG}"\
153-
createdBy="Pipeline"
157+
createdBy="Pipeline" \
158+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
154159
155160
- name: Get Deployment Output and extract Values
156161
id: get_output

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
269269
properties: {
270270
tags: {
271271
... tags
272-
TemplateName: 'Docgen'
272+
TemplateName: enablePrivateNetworking ? 'DocGen-WAF' : 'DocGen'
273273
CreatedBy: createdBy
274274
}
275275
}

0 commit comments

Comments
 (0)