forked from Ruderverein-Donau-Linz/rowt
also deploy to ister
This commit is contained in:
parent
1497e76d28
commit
cd6dc82f70
@ -75,3 +75,23 @@ jobs:
|
|||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
SSH_HOST: ${{ secrets.SSH_HOST }}
|
SSH_HOST: ${{ secrets.SSH_HOST }}
|
||||||
SSH_USER: ${{ secrets.SSH_USER }}
|
SSH_USER: ${{ secrets.SSH_USER }}
|
||||||
|
|
||||||
|
- name: Deploy Ister
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
ssh-keyscan -H $SSH_HOST >> ~/.ssh/known_hosts
|
||||||
|
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||||
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
|
scp -C target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/ister/rot-updating
|
||||||
|
scp -C -r static $SSH_USER@$SSH_HOST:/home/ister/
|
||||||
|
scp -C -r templates $SSH_USER@$SSH_HOST:/home/ister/
|
||||||
|
scp -C -r svelte $SSH_USER@$SSH_HOST:/home/ister/
|
||||||
|
ssh $SSH_USER@$SSH_HOST 'mkdir -p /home/ister/svelte/build'
|
||||||
|
ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop ister'
|
||||||
|
ssh $SSH_USER@$SSH_HOST 'mv /home/ister/rot-updating /home/ister/rot'
|
||||||
|
ssh $SSH_USER@$SSH_HOST 'sudo systemctl start ister'
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
SSH_HOST: ${{ secrets.SSH_HOST }}
|
||||||
|
SSH_USER: ${{ secrets.SSH_USER }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user