diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 898cc3a..589e6b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,7 @@ deploy-staging: - chmod 700 ~/.ssh - ssh-keyscan -H $SSH_HOST > ~/.ssh/known_hosts script: + - ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rotstaging' - scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging - ssh $SSH_USER@$SSH_HOST 'rm /home/k004373/rowing-staging/db.sqlite && cp /home/k004373/rowing/db.sqlite /home/k004373/rowing-staging/db.sqlite && mkdir /home/k004373/rowing-staging/svelte/build' - scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/ @@ -52,6 +53,7 @@ deploy-main: - chmod 700 ~/.ssh - ssh-keyscan -H $SSH_HOST > ~/.ssh/known_hosts script: + - ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rot' - scp target/$CARGO_TARGET/release/rot $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/