Skip to content

Commit 1d7888c

Browse files
committed
chore: Add Makefile for terraform
1 parent a0e57ba commit 1d7888c

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ SHELL=/bin/bash -o pipefail
33
TAG := $(strip $(shell git describe --tags --exact-match HEAD 2> /dev/null | cut -c 2- || git rev-parse --short HEAD))
44

55
CONTROLLER_PATH := controller
6+
TERRAFORM_PATH := terraform
67
USERNAME := saulmaldonado
78

89
include .env
910
export
1011

11-
.PHONY: build
12+
.PHONY: build terraform
1213

1314
all:
1415
@$(MAKE) -C $(CONTROLLER_PATH)
@@ -33,3 +34,6 @@ go-build:
3334

3435
go-run:
3536
@$(MAKE) -C $(CONTROLLER_PATH) go-run
37+
38+
tf:
39+
@$(MAKE) -C $(TERRAFORM_PATH)

‎terraform/Makefile‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.PHONY: init plan apply
2+
3+
all: init plan apply
4+
5+
init:
6+
terraform init
7+
8+
plan:
9+
terraform plan
10+
11+
apply:
12+
terraform apply

0 commit comments

Comments
 (0)