Skip to content

Commit 53c4322

Browse files
Updated RAdeploy.yml file
1 parent 9444dc9 commit 53c4322

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/RAdeploy.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,7 @@ jobs:
8484
rg_exists=$(az group exists --name ${{ env.RESOURCE_GROUP_NAME }})
8585
if [ "$rg_exists" = "false" ]; then
8686
echo "Resource group does not exist. Creating..."
87-
88-
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
89-
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
90-
az group create --name ${{ env.RESOURCE_GROUP_NAME }} \
91-
--location ${{ env.AZURE_LOCATION }} \
92-
--tags "CreatedBy=Pipeline" \
93-
"Purpose=Deploying and Cleaning Up Resources for Validation" \
94-
"CreatedDate=$current_date" \
95-
"ApplicationName=Research Assistant" \
96-
|| { echo "Error creating resource group"; exit 1; }
87+
az group create --name ${{ env.RESOURCE_GROUP_NAME }} --location ${{ env.AZURE_LOCATION }} || { echo "Error creating resource group"; exit 1; }
9788
else
9889
echo "Resource group already exists."
9990
fi
@@ -111,10 +102,13 @@ jobs:
111102
id: deploy
112103
run: |
113104
set -e
105+
# Generate current timestamp in desired format: YYYY-MM-DDTHH:MM:SS.SSSSSSSZ
106+
current_date=$(date -u +"%Y-%m-%dT%H:%M:%S.%7NZ")
107+
114108
az deployment group create \
115109
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
116110
--template-file infra/bicep/main.bicep \
117-
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }} createdBy="Pipeline" tags="{'SecurityControl':'Ignore'}"
111+
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }} createdBy="Pipeline" tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
118112
- name: List KeyVaults and Store in Array
119113
id: list_keyvaults
120114
run: |

0 commit comments

Comments
 (0)