Skip to content

Commit

Permalink
Fix delete review app workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
saliceti committed Jan 31, 2024
1 parent a7a0a5e commit 1d44d4e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/aks_destroy_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
echo "TF_STATE_FILE=$state_file_name" >> $GITHUB_ENV
state_file_status=$(az storage blob list -c cpdecf-tfstate \
--account-name "s189t01cpdecftfstatervsa" \
state_file_status=$(az storage blob list -c terraform-state \
--account-name "s189t01cpdtshrvtfsa" \
--prefix $state_file_name --query "[].name" -o tsv)
if [ -n "$state_file_status" ]; then
Expand All @@ -56,5 +56,5 @@ jobs:
- name: Delete Terraform state file
if: env.TF_STATE_EXISTS == 'true'
run: |
az storage blob delete -c cpdecf-tfstate --name ${{ env.TF_STATE_FILE }} \
--account-name "s189t01cpdecftfstatervsa"
az storage blob delete -c terraform-state --name ${{ env.TF_STATE_FILE }} \
--account-name "s189t01cpdtshrvtfsa"
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ terraform-plan: terraform-init
terraform-apply: terraform-init
terraform -chdir=terraform/application apply -var-file "config/${CONFIG}.tfvars.json" ${AUTO_APPROVE}

terraform-destroy: terraform-init
terraform -chdir=terraform/application destroy -var-file "config/${CONFIG}.tfvars.json" ${AUTO_APPROVE}

set-what-if:
$(eval WHAT_IF=--what-if)

Expand Down
51 changes: 38 additions & 13 deletions terraform/application/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d44d4e

Please sign in to comment.