diff options
author | EuAndreh <eu@euandre.org> | 2019-06-11 10:10:42 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-11 10:11:02 -0300 |
commit | db67d51bea4b7d29af9073a344a965d97a9b1d9b (patch) | |
tree | 89875bb0cea513aeb1751e3155152b72e89c124c /scripts/ci | |
parent | Debug failing Ansible logs (diff) | |
download | toph-db67d51bea4b7d29af9073a344a965d97a9b1d9b.tar.gz toph-db67d51bea4b7d29af9073a344a965d97a9b1d9b.tar.xz |
Run Terraform refresh when not destroying everything
Diffstat (limited to 'scripts/ci')
-rwxr-xr-x | scripts/ci/deploy.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/ci/deploy.sh b/scripts/ci/deploy.sh index 125c910..c068e5c 100755 --- a/scripts/ci/deploy.sh +++ b/scripts/ci/deploy.sh @@ -72,7 +72,8 @@ if [[ "${DESTROY_VOLUME:-}" != "" ]]; then echo "Destroying existing infrastructure..." terraform destroy -input=false -auto-approve > ./logs/terraform-destroy.txt 2>&1 else - echo "Skipping explicit intentional destruction of existing infrastructure..." + echo 'Refreshing view on existing infrastructure...' + terraform refresh > ./logs/terraform-refresh.txt 2>&1 fi echo "Done." |