Update .gitlab-ci.yml file
This commit is contained in:
parent
f896d35d7c
commit
8ca7fb93cc
|
@ -25,6 +25,7 @@ synchro-et-tests:
|
|||
rsync -avzlh * /home/webmaster/site-a-lec.org/articles/
|
||||
- |+
|
||||
# Check how many changed
|
||||
echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)"
|
||||
files=""
|
||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl")
|
||||
if [ -z "$CI_COMMIT_SHA" ]; then files=$(find . -name "*.stl"); fi
|
||||
|
@ -55,6 +56,7 @@ deploiement: # This job runs in the deploy stage.
|
|||
script:
|
||||
- |+
|
||||
# Check how many files to be builded
|
||||
echo "Fichiers commités : $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)"
|
||||
files=""
|
||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep stl || find . -name "*.stl")
|
||||
if [ -z "$CI_COMMIT_SHA" ]; then files=$(find . -name "*.stl"); fi
|
||||
|
|
Loading…
Reference in New Issue