diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 509072c43c6f0bcffa08284f5b3f184d8d2ab746..c8fd4818f0b3e9528fde04d69af757bad8e14590 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"