Skip to content

Commit 11046de

Browse files
authored
feat: add Makefile for gcloud example (#405)
1 parent 1642145 commit 11046de

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/deployment/gcloud/Makefile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
TF ?= terraform
2+
GCLOUD ?= gcloud
3+
TFPLAN ?=tfplan
4+
VARS ?=prod.tfvars
5+
6+
.PHONY: plan
7+
plan:
8+
$(TF) plan -var-file=$(VARS) -out $(TFPLAN)
9+
10+
.PHONY: init
11+
init:
12+
$(GCLOUD) auth application-default login
13+
$(TF) init
14+
15+
.PHONY: apply
16+
apply:
17+
$(TF) apply $(TFPLAN)
18+
19+
.PHONY: destroy
20+
destroy:
21+
$(TF) destroy -var-file=$(VARS)
22+

0 commit comments

Comments
 (0)