From f6c98c7e66bd5605284b5d6dc449fec0effd838c Mon Sep 17 00:00:00 2001 From: Amit Sagtani Date: Tue, 19 Nov 2024 14:29:06 +0100 Subject: [PATCH] temp: do not clean machines after failure --- .github/workflows/offline.yml | 10 +++++----- offline/cd.sh | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/offline.yml b/.github/workflows/offline.yml index 367b41cd7..cdcd119f1 100644 --- a/.github/workflows/offline.yml +++ b/.github/workflows/offline.yml @@ -63,10 +63,10 @@ jobs: env: HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' - - name: Clean up hetzner environment; just in case - if: always() - run: (cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform init && terraform destroy -auto-approve) - env: - HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' +# - name: Clean up hetzner environment; just in case +# if: always() +# run: (cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform init && terraform destroy -auto-approve) +# env: +# HCLOUD_TOKEN: '${{ secrets.HCLOUD_TOKEN }}' diff --git a/offline/cd.sh b/offline/cd.sh index 6b8bee6f1..551006c54 100755 --- a/offline/cd.sh +++ b/offline/cd.sh @@ -12,6 +12,8 @@ adminhost=$(cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform adminhost="${adminhost//\"/}" # remove extra quotes around the returned string ssh_private_key=$(cd terraform/examples/wire-server-deploy-offline-hetzner ; terraform output ssh_private_key) +echo "adminhost: $adminhost" +echo "$ssh_private_key" eval `ssh-agent` ssh-add - <<< "$ssh_private_key"