From 2beff31a7118f5d58956f02ab0bdaf87dedb122f Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 30 Jul 2023 18:30:56 +0200 Subject: [PATCH] push --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d86868f..5f11d5c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,7 +40,7 @@ deploy-staging: - scp -r svelte $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/ - ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rotstaging' - 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 -p /home/k004373/rowing-staging/svelte/build' - - mv /home/k004373/rowing-staging/rot-updating /home/k004373/rowing-staging/rot + - ssh $SSH_USER@$SSH_HOST 'mv /home/k004373/rowing-staging/rot-updating /home/k004373/rowing-staging/rot' - ssh $SSH_USER@$SSH_HOST 'sudo systemctl start rotstaging' only: - staging @@ -60,8 +60,8 @@ deploy-main: - scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing/ - scp -r svelte $SSH_USER@$SSH_HOST:/home/k004373/rowing/ - ssh $SSH_USER@$SSH_HOST 'mkdir -p /home/k004373/rowing/svelte/build' - - ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rotstaging' - - mv /home/k004373/rowing/rot-updating /home/k004373/rowing/rot + - ssh $SSH_USER@$SSH_HOST 'sudo systemctl stop rot' + - ssh $SSH_USER@$SSH_HOST 'mv /home/k004373/rowing/rot-updating /home/k004373/rowing/rot' - ssh $SSH_USER@$SSH_HOST 'sudo systemctl start rot' only: - main