From 6750166527e7566abedded9b8ab0abcb18cdc355 Mon Sep 17 00:00:00 2001 From: Fabien Zucchet <fabien.zucchet@student-cs.fr> Date: Thu, 4 Mar 2021 17:20:25 +0100 Subject: [PATCH] fix pipeline --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f0d31e5..d362592b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,7 +113,7 @@ front-prod-deploy: - chmod 700 ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - > - ssh humaviron.cs-campus.fr@humaviron.cs-campus.fr + ssh root@humaviron.cs-campus.fr "sudo rm -rf /var/www/prod/* && exit" - "scp -r ./front/build/* root@humaviron.cs-campus.fr:/var/www/prod" -- GitLab