Skip to content

Commit 83a661e

Browse files
CI Pipeline Validate Deployment - MACAE
1 parent 287ef57 commit 83a661e

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/deploy-waf.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- CI-Pipeline-macae
78
schedule:
89
- cron: "0 11,23 * * *" # Runs at 11:00 AM and 11:00 PM GMT
910

@@ -105,6 +106,9 @@ jobs:
105106
id: deploy
106107
run: |
107108
set -e
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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- main
1010
- hotfix
1111
- dev
12+
- CI-Pipeline-macae
1213
schedule:
1314
- cron: "0 11,23 * * *" # Runs at 11:00 AM and 11:00 PM GMT
1415
workflow_dispatch: #Allow manual triggering
@@ -125,6 +126,9 @@ jobs:
125126
IMAGE_TAG="latest"
126127
fi
127128
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+
128132
az deployment group create \
129133
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
130134
--template-file infra/main.bicep \
@@ -138,6 +142,7 @@ jobs:
138142
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
139143
gptModelCapacity=150 \
140144
createdBy="Pipeline" \
145+
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" \
141146
--output json
142147
143148
- name: Extract Web App and API App URLs

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
178178
properties: {
179179
tags: {
180180
...allTags
181-
TemplateName: 'MACAE'
181+
TemplateName: enablePrivateNetworking ? 'MACAE - WAF' : 'MACAE'
182182
CreatedBy: createdBy
183183
}
184184
}

0 commit comments

Comments
 (0)