Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-08-12 15:33:46 +00:00
parent 33fdb10912
commit 7e071a671d
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ synchro-et-tests:
stage: build
script:
- rsync -avzlh * /home/webmaster/site-chalec.org/articles/
- files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl))
- files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || exit 0))
- cd /home/webmaster/site-chalec.org/articles
- |+
for file in $files
@ -37,7 +37,7 @@ 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))
- files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || exit 0))
- |+
for file in $files
do