From e9f53a986a741b02e1df4b76a67e409e374b2bf4 Mon Sep 17 00:00:00 2001 From: Antoine Gaudron-desjardins <antoine.gaudrondesjardins@student-cs.fr> Date: Thu, 13 Oct 2022 15:31:56 +0200 Subject: [PATCH] cd --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 118dc85..d3572e3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,4 +47,4 @@ deploy: - apt-get update - apt-get install -y openssh-client sshpass - sshpass -p viazero ssh -o StrictHostKeyChecking=no viazero@138.195.138.219 - "sudo su && cd /var/www/cicd && sudo git pull && sudo pip install -r requirements.txt && sudo systemctl restart calculator" + "sudo su && cd /var/www/cicd && sudo git switch $CI_CURRENT_BRANCH && sudo git pull && sudo pip install -r requirements.txt && sudo systemctl restart calculator" -- GitLab