From 5b6a5750ac7d9c7730842b5ae6e7202970662b39 Mon Sep 17 00:00:00 2001
From: LouisV <louis.vauterin@student-cs.fr>
Date: Thu, 13 Oct 2022 18:50:03 +0200
Subject: [PATCH] Deployer site dans CD

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 509072c..c8fd481 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -46,5 +46,5 @@ deploy:
   script:
     - apt-get update
     - apt-get install -y openssh-client sshpass
-    - sshpass -p <mot-de-passe> ssh -o StrictHostKeyChecking=no <nom-d'utilisateur>@<ip-de-ma-vm>
-      "commanede 1 && commande 2 && commande 3 && etc..."
+    - sshpass -p viazero ssh -o StrictHostKeyChecking=no viazero@138.195.138.28
+      "sudo su && mkdir -p /var/www && cd /var/www && git clone https://gitlab.viarezo.fr/2022vauterinlo/cicd.git && cd cicd && git checkout tp3 && pip install -r requirements.txt && cp deploy/calculator.service /etc/systemd/system/ && systemctl daemon-reload && systemctl start calculator"
-- 
GitLab