From ae8816bbc661c9b52378058ec4803ca0bb76eb83 Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 21 Oct 2022 20:56:07 -0700 Subject: [PATCH] * Better build scripts which are now source aware --- infra/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/infra/Makefile b/infra/Makefile index b09ae2d..c3a6eae 100644 --- a/infra/Makefile +++ b/infra/Makefile @@ -2,17 +2,21 @@ plan=out.plan SHELL := /bin/bash -build: +$(plan): *.tf source secrets/set-env.sh && terraform plan -out $(plan) +push: build + source secrets/set-env.sh && terraform apply $(plan) + +refresh: + source secrets/set-env.sh && terraform apply -refresh-only + test: terraform validate -push: - terraform apply $(plan) rip: - terraform destroy + source secrets/set-env.sh && terraform destroy clean: rm -f $(plan)