Makefile: remove hardcoded environment

This commit is contained in:
RyanSquared 2023-05-07 03:37:07 -04:00
parent 048f29c9f1
commit 09e7c060b8
Signed by untrusted user who does not match committer: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 3 additions and 3 deletions

View File

@ -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) \