forked from MapComplete/MapComplete
Fix: attempt to get runners working
This commit is contained in:
parent
c59fcf861a
commit
142cf9a117
1 changed files with 6 additions and 2 deletions
8
.github/workflows/deploy_hosted.yml
vendored
8
.github/workflows/deploy_hosted.yml
vendored
|
@ -53,7 +53,11 @@ jobs:
|
|||
SSH_KEY: ${{ secrets.HETZNER_KEY }}
|
||||
run: |
|
||||
mkdir .ssh
|
||||
echo $SSH_KEY > .ssh/id_ed25519
|
||||
scp dist/* pietervdvn@hosted.mapcomplete.org:/root/public/${{ github.ref_name }}
|
||||
echo -e $SSH_KEY > .ssh/id_ed25519
|
||||
chmod 500 .ssh/id_ed25519
|
||||
ssh -i .ssh/id_ed25519 root@hosted.mapcomplete.org "mkdir /root/staging/${{ github.ref_name }}"
|
||||
scp -r -i .ssh/id_ed25519 dist/* root@hosted.mapcomplete.org:/root/staging/${{ github.ref_name }}
|
||||
ssh -i .ssh/id_ed25519 root@hosted.mapcomplete.org "rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue