diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9d8392..ae194ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,7 @@ synchro-et-tests: script: - rsync -avzlh * /home/webmaster/site-chalec.org/articles/ - files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || exit 0)) - - cd /home/webmaster/site-chalec.org/articles + - cd /home/webmaster/site-chalec.org - |+ for file in $files do @@ -36,8 +36,8 @@ synchro-et-tests: deploiement: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. script: - - cd /home/webmaster/site-chalec.org/articles - files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || exit 0)) + - cd /home/webmaster/site-chalec.org - |+ for file in $files do