From 7bc646f7d162292279980d2a3b284212dac42bed Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 24 Jun 2022 20:45:05 +0000 Subject: [PATCH] En attendant les conventions d'appel... --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 99d654b..ed4b813 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,8 +23,10 @@ synchro-et-tests: - 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/ + - files=(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA) - cd /home/webmaster/articles - - gsl check | grep "Err" && gsl sync wip + - if [ ! gsl check | grep "Err" ]; then exit 0 fi + - gsl sync wip deploiement: # This job runs in the deploy stage. @@ -35,6 +37,6 @@ deploiement: # This job runs in the deploy stage. for postfile in $(ls *.gsl) do echo "Construction de $postfile" - gsl make $postfile | grep "Err" + if [ ! gsl make $postfile | grep "Err" ]; then echo OK fi done - echo "Déploiement terminé." \ No newline at end of file