This commit is contained in:
philipp 2023-07-30 17:30:40 +02:00
parent 63f2e805ca
commit 9538dac8ed

View File

@ -55,10 +55,10 @@ deploy-main:
script: script:
- ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rot' - ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rot'
- scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing - scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing
- ssh $SSH_USER@$SSH_HOST 'mkdir /home/k004373/rowing-staging/svelte/build'
- scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing/ - scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing/
- scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing/ - scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing/
- scp -r svelte $SSH_USER@$SSH_HOST:/home/k004373/rowing/ - scp -r svelte $SSH_USER@$SSH_HOST:/home/k004373/rowing/
- ssh $SSH_USER@$SSH_HOST 'mkdir /home/k004373/rowing-staging/svelte/build'
- ssh $SSH_USER@$SSH_HOST 'sudo systemctl start rot' - ssh $SSH_USER@$SSH_HOST 'sudo systemctl start rot'
only: only:
- main - main