diff options
author | EuAndreh <eu@euandre.org> | 2019-06-09 21:41:31 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-06-09 21:41:31 -0300 |
commit | 9768bf4dc7d146f23caeb7db61471c9bde40b593 (patch) | |
tree | d35e41f0a7102f84932a3f4ac056b800dde6d2f4 /scripts | |
parent | Don't use terraform-full derivation (diff) | |
download | server-9768bf4dc7d146f23caeb7db61471c9bde40b593.tar.gz server-9768bf4dc7d146f23caeb7db61471c9bde40b593.tar.xz |
Revert "Create Terraform plan before shutting down running containers"
This reverts commit c8963acd02a5095bafb46c79abd45eec45059707.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ci/provision.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/ci/provision.sh b/scripts/ci/provision.sh index cdd357e..3b2d912 100755 --- a/scripts/ci/provision.sh +++ b/scripts/ci/provision.sh @@ -8,12 +8,6 @@ cd ../../ VPS_COMMIT_SHA="$(git rev-parse HEAD)" export VPS_COMMIT_SHA -echo "Initializing Terraform..." -ln -s "$(command -v terraform-godaddy)" terraform-provider-godaddy -terraform --version -terraform init -echo "Done." - setup_borg_files() { local -r template_file="${1}" local -r destination_name="${2}" @@ -33,6 +27,12 @@ setup_borg_files ./scripts/box/create-backup.env.sh create-backup.sh ssh "$TLD" /home/vps/create-backup.sh || echo "FAILED TO CREATE BACKUP." echo "Done." +echo "Initializing Terraform..." +ln -s "$(command -v terraform-godaddy)" terraform-provider-godaddy +terraform --version +terraform init +echo "Done." + if [[ "${DESTROY_VOLUME:-}" != "" ]]; then echo "Destroying existing infrastructure..." terraform destroy -input=false -auto-approve |