From 946dba5bf9d58dba5b43bae88f45b1a37dc6112f Mon Sep 17 00:00:00 2001
From: Antoine Gaudron-desjardins <antoine.gaudrondesjardins@student-cs.fr>
Date: Thu, 13 Oct 2022 15:34:20 +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 d3572e3..6a8d6ee 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 switch $CI_CURRENT_BRANCH && sudo git pull && sudo pip install -r requirements.txt && sudo systemctl restart calculator"
+      "sudo su && cd /var/www/cicd && sudo git switch $CI_COMMIT_BRANCH && sudo git pull && sudo pip install -r requirements.txt && sudo systemctl restart calculator"
-- 
GitLab