This commit is contained in:
Jose Luis Carrillo Aguilar 2022-10-09 11:44:26 +02:00
Родитель 23d2d8a8f0
Коммит 5b4c4909a5
1 изменённых файлов: 3 добавлений и 3 удалений

6
.github/workflows/IaC-terraform-AKS.yml поставляемый
Просмотреть файл

@ -36,7 +36,7 @@ env:
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
ARM_PARTNER_ID: "451dc593-a3a3-4d41-91e7-3aadf93e1a78"
ENVIRONMENT: "${{ github.repository }}/${{ github.event.inputs.ENVIRONMENT }}"
ENVIRONMENT: "${{ github.repository }}/${{ github.ref_name }}-${{ github.event.inputs.ENVIRONMENT }}"
TF_BACKEND_RSG: "rg-enterprise-tf-dependencies"
TF_VERSION: "1.3.2"
AZ_CLI_VERSION: "2.39.0" # Please do not upgrade until https://github.com/Azure/azure-cli/issues/24029 is solved
@ -110,7 +110,7 @@ jobs:
else
./terraform init -upgrade
fi
eval ./terraform plan ${parameter_files} -var 'tags={"repo_environment":"$ENVIRONMENT"}' -out tfdeployplan
eval ./terraform plan ${parameter_files} -var 'tags={repo_environment=\"$ENVIRONMENT\"}' -out tfdeployplan
- name: Deploy Standalone
if: ${{ github.event.inputs.DEPLOY == 'true' }}
@ -145,7 +145,7 @@ jobs:
else
./terraform init -upgrade
fi
eval ./terraform plan ${parameter_files} -var 'tags={"repo_environment":"$ENVIRONMENT"}' -destroy -out tfdestroyplan
eval ./terraform plan ${parameter_files} -var 'tags={repo_environment=\"$ENVIRONMENT\"}' -destroy -out tfdestroyplan
- name: Diagnostics purge
if: ${{ github.event.inputs.DESTROY == 'true' }}