File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 AZURE_SUBSCRIPTION_ID : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3232 AZURE_LOCATION : ' westus3'
3333 PYTHONIOENCODING : utf-8
34+ RG_TAGS : ${{ vars.RG_TAGS }}
3435
3536jobs :
3637 build :
7677 rg_exists=$(az group exists --name $RESOURCE_GROUP_NAME)
7778 if [ "$rg_exists" = "false" ]; then
7879 echo "📦 Resource group does not exist. Creating new resource group '$RESOURCE_GROUP_NAME' in location '$AZURE_LOCATION'..."
79- az group create --name $RESOURCE_GROUP_NAME --location $AZURE_LOCATION || { echo "❌ Error creating resource group"; exit 1; }
80+ az group create --name $RESOURCE_GROUP_NAME --location $AZURE_LOCATION --tags ${{ env.RG_TAGS }} || { echo "❌ Error creating resource group"; exit 1; }
8081 echo "✅ Resource group '$RESOURCE_GROUP_NAME' created successfully."
8182 else
8283 echo "✅ Resource group '$RESOURCE_GROUP_NAME' already exists. Deploying to existing resource group."
You can’t perform that action at this time.
0 commit comments