From 09e7c060b87b5ff0d3af24db34f32844dd3cc465 Mon Sep 17 00:00:00 2001 From: RyanSquared Date: Sun, 7 May 2023 03:37:07 -0400 Subject: [PATCH] Makefile: remove hardcoded environment --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6e94635..6c5827d 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ infra/backend/$(ENVIRONMENT).tfstate: \ $(OUT_DIR)/terraform \ $(OUT_DIR)/sops \ infra/backend/.terraform - $(SOPS) exec-env secrets/production.enc.env '\ + $(SOPS) exec-env secrets/$(ENVIRONMENT).enc.env '\ env -C infra/backend \ $(TERRAFORM) apply \ -var environment=$(ENVIRONMENT) \ @@ -76,7 +76,7 @@ config/$(ENVIRONMENT).tfbackend: | \ $(OUT_DIR)/sops \ # File is not committed and this has no shared state $(MAKE) infra/backend/$(ENVIRONMENT).tfstate - $(SOPS) exec-env secrets/production.enc.env '\ + $(SOPS) exec-env secrets/$(ENVIRONMENT).enc.env '\ env -C infra/backend \ $(TERRAFORM) \ output -state ../../$< \ @@ -88,7 +88,7 @@ apply: \ $(OUT_DIR)/terraform \ $(OUT_DIR)/sops \ infra/main/.terraform - $(SOPS) exec-env secrets/production.enc.env '\ + $(SOPS) exec-env secrets/$(ENVIRONMENT).enc.env '\ env -C infra/main \ $(TERRAFORM) apply \ -var environment=$(ENVIRONMENT) \