Skip to content

Commit

Permalink
temp: do not clean machines after failure
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsagtani97 committed Nov 19, 2024
1 parent 525a55f commit f6c98c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/offline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'


2 changes: 2 additions & 0 deletions offline/cd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit f6c98c7

Please sign in to comment.