aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-06-11 10:10:42 -0300
committerEuAndreh <eu@euandre.org>2019-06-11 10:11:02 -0300
commitdb67d51bea4b7d29af9073a344a965d97a9b1d9b (patch)
tree89875bb0cea513aeb1751e3155152b72e89c124c /scripts/ci
parentDebug failing Ansible logs (diff)
downloadtoph-db67d51bea4b7d29af9073a344a965d97a9b1d9b.tar.gz
toph-db67d51bea4b7d29af9073a344a965d97a9b1d9b.tar.xz
Run Terraform refresh when not destroying everything
Diffstat (limited to 'scripts/ci')
-rwxr-xr-xscripts/ci/deploy.sh3
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."