From 66c3cb1b2b9739b0e3bf12ab8b079a8aa4736d4b Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Jun 2019 21:22:01 -0300 Subject: Store updated Terraform files in case of failure --- TODOs.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'TODOs.org') diff --git a/TODOs.org b/TODOs.org index 058a353..471f59c 100644 --- a/TODOs.org +++ b/TODOs.org @@ -143,7 +143,8 @@ Right now, secrets are scattered between the two repositories. By moving I can c ** TODO Run backup on Terraform destroy action instead of manually in =provision.sh= ** DONE Explicitly destroy Droplets before running Terraform apply CLOSED: [2019-06-05 Wed 19:48] -** NEXT Store updated =.tfstate= even in case of deployment failure +** DONE Store updated =.tfstate= even in case of deployment failure +CLOSED: [2019-06-10 Mon 21:21] Right now the script fails on Terraform commands before reaching git commands. I should trap the error, store on git and only then fail. ** DONE Fix alias in =bash-profile.sh= CLOSED: [2019-06-10 Mon 09:01] -- cgit v1.2.3