Skip to content

Commit 35323ca

Browse files
committed
automation: disable cleaning up of CD environment
1 parent 4f99376 commit 35323ca

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/offline.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ jobs:
6363
env:
6464
HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'
6565

66-
- name: Clean up hetzner environment; just in case
67-
if: always()
68-
run: (cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform init && terraform destroy -auto-approve)
69-
env:
70-
HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'
66+
# - name: Clean up hetzner environment; just in case
67+
# if: always()
68+
# run: (cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform init && terraform destroy -auto-approve)
69+
# env:
70+
# HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}'
7171

7272

offline/cd.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
set -euo pipefail
44

5-
function cleanup {
6-
(cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform destroy -auto-approve)
7-
echo done
8-
}
9-
trap cleanup EXIT
5+
# function cleanup {
6+
# (cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform destroy -auto-approve)
7+
# echo done
8+
# }
9+
# trap cleanup EXIT
1010
(cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform init ; terraform apply -auto-approve )
1111
adminhost=$(cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform output adminhost)
1212
adminhost="${adminhost//\"/}" # remove extra quotes around the returned string

0 commit comments

Comments
 (0)