Skip to content

Commit 2a987c9

Browse files
added tags in CI Pipeline Validate Deployment - DKM
1 parent 6e9dc0f commit 2a987c9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- main # Adjust this to the branch you want to trigger the deployment on
66
- dev
77
- demo
8+
- CI-Pipeline-dkm
89
schedule:
910
- cron: "0 10,22 * * *" # Runs at 10:00 AM and 10:00 PM GMT
1011

@@ -190,6 +191,10 @@ jobs:
190191
id: deploy
191192
run: |
192193
set -e
194+
195+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
196+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
197+
193198
az deployment group create \
194199
--name ${{ env.SOLUTION_PREFIX }}-deployment \
195200
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
@@ -210,7 +215,8 @@ jobs:
210215
enableTelemetry=true \
211216
enableRedundancy=false \
212217
enableScalability=false \
213-
createdBy="Pipeline"
218+
createdBy="Pipeline" \
219+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
214220
215221
- name: Get Deployment Output and extract Values
216222
id: get_output

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
112112
properties: {
113113
tags: {
114114
...tags
115-
TemplateName: 'DKM'
115+
TemplateName: enablePrivateNetworking ? 'DKM-WAF' : 'DKM'
116116
CreatedBy: createdBy
117117
}
118118
}

0 commit comments

Comments
 (0)