diff --git a/.github/workflows/offline.yml b/.github/workflows/offline.yml index 3d09bdeb0..f042cdfdb 100644 --- a/.github/workflows/offline.yml +++ b/.github/workflows/offline.yml @@ -32,18 +32,6 @@ jobs: GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}' DOCKER_LOGIN: '${{ secrets.DOCKER_LOGIN }}' - - name: Deploy offline environment to hetzner - run: | - ./offline/cd.sh - 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: Get upload name id: upload_name run: | @@ -71,4 +59,16 @@ jobs: env: DOCKER_LOGIN: '${{ secrets.DOCKER_LOGIN }}' + - name: Deploy offline environment to hetzner + run: | + ./offline/cd.sh + 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 }}' +