* Better build scripts which are now source aware
This commit is contained in:
parent
a970d344e9
commit
ae8816bbc6
@ -2,17 +2,21 @@ plan=out.plan
|
|||||||
|
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
|
|
||||||
build:
|
$(plan): *.tf
|
||||||
source secrets/set-env.sh && terraform plan -out $(plan)
|
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:
|
test:
|
||||||
terraform validate
|
terraform validate
|
||||||
|
|
||||||
push:
|
|
||||||
terraform apply $(plan)
|
|
||||||
|
|
||||||
rip:
|
rip:
|
||||||
terraform destroy
|
source secrets/set-env.sh && terraform destroy
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(plan)
|
rm -f $(plan)
|
||||||
|
Loading…
Reference in New Issue
Block a user