This commit is contained in:
Jin Lee 2022-05-03 10:15:52 -05:00
Родитель 47cf379576
Коммит cb37b27f57
1 изменённых файлов: 15 добавлений и 12 удалений

27
.github/workflows/LOB-ILB-ASEv3-Terraform.yml поставляемый
Просмотреть файл

@ -65,22 +65,25 @@ jobs:
terraform init
terraform validate
- name: Terraform Plan
- name: Terraform Plan Destroy
id: plan_destroy
if: ${{ github.event.inputs.destroy == 'true' }}
working-directory: ${{ env.modulePath }}
continue-on-error: true
run: |
if [[ ${{ github.event.inputs.destroy }} == 'true' ]]; then
terraform plan -destroy \
-var-file="Parameters/uat.tfvars" \
-out-file="./asev3-${{github.run_number}}.tfplan"
else
terraform plan \
-var-file="Parameters/uat.tfvars" \
-out-file="./asev3-${{github.run_number}}.tfplan"
fi
terraform plan -destroy \
-var-file="Parameters/uat.tfvars" \
-out-file="./asev3-${{github.run_number}}.tfplan"
- name: Terraform Plan
if: failure()
working-directory: ${{ env.modulePath }}
continue-on-error: true
terraform plan \
-var-file="Parameters/uat.tfvars" \
-out-file="./asev3-${{github.run_number}}.tfplan"
# Deploy Bicep file, need to point parameters to the main.parameters.json location
- name: Terraform Apply
working-directory: ${{ env.modulePath }}
run: |