From 8adc44a4ec775a93358672c2ab4d70ca6a1aceb2 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 14 Apr 2022 22:30:30 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4007dea..ba7bc30 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,22 +17,19 @@ stages: # List of stages for jobs, and their order of execution - build - deploy -build-job: +synchro-et-tests: stage: build script: - - echo "Récupération du dernier git push..." + - rsync -avzlh * /home/webmaster/articles/ + - rsync -avzlh fichiers/ /var/lib/gsl/domains/chalec.org/files/ + - rsync -avzlh images/ /var/lib/gsl/domains/chalec.org/images/ - cd /home/webmaster/articles - - git checkout -- . - - git pull - - rsync -avzlh --ignore-existing fichiers/ /var/lib/gsl/domains/chalec.org/files/ - - rsync -avzlh --ignore-existing images/ /var/lib/gsl/domains/chalec.org/images/ - gsl check -deploy-job: # This job runs in the deploy stage. +deploiement: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. script: - - echo "Déploiement..." - cd /home/webmaster/articles - |+ for postfile in $(ls *.gsl) @@ -40,4 +37,4 @@ deploy-job: # This job runs in the deploy stage. echo "Construction de $postfile" gsl check $postfile && gsl make $postfile && gsl check $postfile && gsl make $postfile done - - echo "Déploiement terminé." + - echo "Déploiement terminé." \ No newline at end of file