Skip to content

Commit

Permalink
terraform-init on gcloud-terraform-destroy-cluster (#2161)
Browse files Browse the repository at this point in the history
On a clean machine, this target didn't work since I hadn't previously
run `make terraform-init` on a different target.

This fixes that!
  • Loading branch information
markmandel authored Jun 25, 2021
1 parent 75db964 commit 1ec6998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/includes/terraform.mk
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ gcloud-terraform-install:

gcloud-terraform-destroy-cluster: GCP_PROJECT ?= $(current_project)
gcloud-terraform-destroy-cluster:
$(MAKE) terraform-init DIRECTORY=gke
$(DOCKER_RUN) bash -c 'cd $(mount_path)/build/terraform/gke && terraform destroy -var project=$(GCP_PROJECT) -auto-approve'

terraform-test: $(ensure-build-image)
Expand Down

0 comments on commit 1ec6998

Please sign in to comment.