Skip to content
Snippets Groups Projects
Commit 5b6a5750 authored by Louis Vauterin's avatar Louis Vauterin
Browse files

Deployer site dans CD

parent 7f938715
No related branches found
No related tags found
No related merge requests found
Pipeline #46415 failed
......@@ -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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment