diff options
author | EuAndreh <eu@euandre.org> | 2020-08-02 19:05:57 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-08-02 19:06:10 -0300 |
commit | d61067b52725874ccee43bfb9194034be944ab44 (patch) | |
tree | eb7773931f5f91fc33303e5b804f2c0903bb2a68 | |
parent | Toggle DESTROY_VOLUME (diff) | |
download | toph-d61067b52725874ccee43bfb9194034be944ab44.tar.gz toph-d61067b52725874ccee43bfb9194034be944ab44.tar.xz |
Rename DESTROY_VOLUME -> DESTROY_VPS
-rw-r--r-- | provision.env.yaml | 2 | ||||
-rwxr-xr-x | scripts/ci/deploy.sh | 2 | ||||
-rw-r--r-- | secrets/secret-envrc.sh | bin | 2756 -> 2753 bytes |
3 files changed, 2 insertions, 2 deletions
diff --git a/provision.env.yaml b/provision.env.yaml index 07fd3f0..4f98e62 100644 --- a/provision.env.yaml +++ b/provision.env.yaml @@ -37,7 +37,7 @@ - { src: './generated/docker-compose.yaml', dest: '/home/vps/docker-compose.yaml', mode: '400' } - name: Restore borg backup when we have a fresh volume shell: /home/vps/restore-backup.sh - when: lookup('env', 'DESTROY_VOLUME') == "1" + when: lookup('env', 'DESTROY_VPS') == "1" - name: Create the required Docker network docker_network: name: nginx-proxy diff --git a/scripts/ci/deploy.sh b/scripts/ci/deploy.sh index 0383911..08cfd9c 100755 --- a/scripts/ci/deploy.sh +++ b/scripts/ci/deploy.sh @@ -65,7 +65,7 @@ terraform --version terraform init echo "Done." -if [[ "${DESTROY_VOLUME:-}" != "" ]]; then +if [[ "${DESTROY_VPS:-}" != "" ]]; then echo "Destroying existing infrastructure..." terraform destroy -input=false -auto-approve > ./logs/terraform-destroy.txt 2>&1 else diff --git a/secrets/secret-envrc.sh b/secrets/secret-envrc.sh Binary files differindex f2119f2..57e084c 100644 --- a/secrets/secret-envrc.sh +++ b/secrets/secret-envrc.sh |