diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb4949d..e958717 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 || ls *.stl)) + - files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || ls *.stl) - cd /home/webmaster/site-chalec.org - |+ for file in $files @@ -37,7 +37,7 @@ 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: - - files=($(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || ls *.stl)) + - files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA|grep stl || ls *.stl) - cd /home/webmaster/site-chalec.org - |+ for file in $files