Skip to content

Commit 7169d8c

Browse files
Update deploy.yml
1 parent 85ec07d commit 7169d8c

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
name: Validate Deployment
1+
name: Validate Deployment v2
22

33
on:
44
workflow_run:
55
workflows: ["Build Docker and Optional Push"]
66
types:
77
- completed
88
branches:
9-
- main
10-
- hotfix
9+
- macae-v2
1110
- dev
1211
schedule:
1312
- cron: "0 11,23 * * *" # Runs at 11:00 AM and 11:00 PM GMT
@@ -115,19 +114,16 @@ jobs:
115114
- name: Deploy Bicep Template
116115
id: deploy
117116
run: |
118-
if [[ "${{ env.BRANCH_NAME }}" == "main" ]]; then
117+
if [[ "${{ env.BRANCH_NAME }}" == "macae-v2" ]]; then
119118
IMAGE_TAG="latest"
120119
elif [[ "${{ env.BRANCH_NAME }}" == "dev" ]]; then
121120
IMAGE_TAG="dev"
122-
elif [[ "${{ env.BRANCH_NAME }}" == "hotfix" ]]; then
123-
IMAGE_TAG="hotfix"
124-
else
125-
IMAGE_TAG="latest"
121+
# elif [[ "${{ env.BRANCH_NAME }}" == "hotfix" ]]; then
122+
# IMAGE_TAG="hotfix"
123+
# else
124+
# IMAGE_TAG="latest"
126125
fi
127126
128-
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
129-
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
130-
131127
az deployment group create \
132128
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
133129
--template-file infra/main.bicep \
@@ -142,7 +138,6 @@ jobs:
142138
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
143139
gptModelCapacity=150 \
144140
createdBy="Pipeline" \
145-
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}" \
146141
--output json
147142
148143
- name: Extract Web App and API App URLs

0 commit comments

Comments
 (0)