Skip to content

Commit 3d46cf2

Browse files
Merge pull request #566 from microsoft/CI-Pipline-docgen
fix: CI Pipeline Validate Deployment - DocGen
2 parents 62b6009 + 880cd2f commit 3d46cf2

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- main
1010
- dev
1111
- demo
12-
1312
schedule:
1413
- cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT
1514

@@ -135,6 +134,9 @@ jobs:
135134
IMAGE_TAG="latest_waf"
136135
fi
137136
137+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
138+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
139+
138140
az deployment group create \
139141
--name ${{ env.SOLUTION_PREFIX }}-deployment \
140142
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -150,7 +152,8 @@ jobs:
150152
embeddingDeploymentCapacity=${{ env.TEXT_EMBEDDING_MIN_CAPACITY }} \
151153
azureAiServiceLocation=${{ env.AZURE_LOCATION }} \
152154
imageTag="${IMAGE_TAG}"\
153-
createdBy="Pipeline"
155+
createdBy="Pipeline" \
156+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
154157
155158
- name: Get Deployment Output and extract Values
156159
id: get_output

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
270270
properties: {
271271
tags: {
272272
... tags
273-
TemplateName: 'Docgen'
273+
TemplateName: 'DocGen'
274+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
274275
CreatedBy: createdBy
275276
}
276277
}

0 commit comments

Comments
 (0)