forked from public/stack
Makefile: allow binary override
This commit is contained in:
parent
b371447ce0
commit
ffef126f03
16
Makefile
16
Makefile
|
@ -47,14 +47,14 @@ $(OUT_DIR)/website/index.html: \
|
|||
")
|
||||
|
||||
infra/backend/.terraform: \
|
||||
$(OUT_DIR)/terraform \
|
||||
$(TERRAFORM) \
|
||||
$(BACKEND_TF)
|
||||
$(SOPS) exec-env secrets/$(ENVIRONMENT).enc.env '\
|
||||
env -C infra/backend $(TERRAFORM) init -upgrade \
|
||||
'
|
||||
|
||||
infra/main/.terraform: | \
|
||||
$(OUT_DIR)/terraform \
|
||||
$(TERRAFORM) \
|
||||
config/$(ENVIRONMENT).tfbackend \
|
||||
$(MAIN_TF)
|
||||
$(SOPS) exec-env secrets/$(ENVIRONMENT).enc.env '\
|
||||
|
@ -63,8 +63,8 @@ infra/main/.terraform: | \
|
|||
'
|
||||
|
||||
infra/backend/$(ENVIRONMENT).tfstate: \
|
||||
$(OUT_DIR)/terraform \
|
||||
$(OUT_DIR)/sops \
|
||||
$(TERRAFORM) \
|
||||
$(SOPS) \
|
||||
infra/backend/.terraform
|
||||
$(SOPS) exec-env secrets/$(ENVIRONMENT).enc.env '\
|
||||
env -C infra/backend \
|
||||
|
@ -76,8 +76,8 @@ infra/backend/$(ENVIRONMENT).tfstate: \
|
|||
'
|
||||
|
||||
config/$(ENVIRONMENT).tfbackend: | \
|
||||
$(OUT_DIR)/terraform
|
||||
$(OUT_DIR)/sops \
|
||||
$(TERRAFORM) \
|
||||
$(SOPS) \
|
||||
# File is not committed and this has no shared state
|
||||
$(MAKE) infra/backend/$(ENVIRONMENT).tfstate
|
||||
$(SOPS) exec-env secrets/$(ENVIRONMENT).enc.env '\
|
||||
|
@ -89,8 +89,8 @@ config/$(ENVIRONMENT).tfbackend: | \
|
|||
|
||||
.PHONY:
|
||||
apply: \
|
||||
$(OUT_DIR)/terraform \
|
||||
$(OUT_DIR)/sops \
|
||||
$(TERRAFORM) \
|
||||
$(SOPS) \
|
||||
infra/main/.terraform
|
||||
$(call maybe_decrypt_secret,secrets/$(ENVIRONMENT).talosconfig,infra/main/talos/talosconfig)
|
||||
$(call maybe_decrypt_secret,secrets/$(ENVIRONMENT).kubeconfig,infra/main/talos/kubeconfig)
|
||||
|
|
Loading…
Reference in New Issue