Update .gitlab-ci.yml file

This commit is contained in:
Adrien Bourmault 2022-08-12 15:45:52 +00:00
parent 7a4f1ed052
commit 186e29a2bf
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ synchro-et-tests:
stage: build stage: build
script: script:
- rsync -avzlh * /home/webmaster/site-chalec.org/articles/ - 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 - cd /home/webmaster/site-chalec.org
- |+ - |+
for file in $files for file in $files
@ -37,7 +37,7 @@ synchro-et-tests:
deploiement: # 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. stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
script: 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 - cd /home/webmaster/site-chalec.org
- |+ - |+
for file in $files for file in $files