Merge branch 'master' of git.a-lec.org:a-lec/commissions/chalec/www
This commit is contained in:
commit
aa52a4898b
|
@ -17,22 +17,19 @@ stages: # List of stages for jobs, and their order of execution
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
build-job:
|
synchro-et-tests:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- echo "Récupération du dernier git push..."
|
- rsync -avzlh * /home/webmaster/articles/
|
||||||
|
- rsync -avzlh fichiers/ /var/lib/gsl/domains/chalec.org/files/
|
||||||
|
- rsync -avzlh images/ /var/lib/gsl/domains/chalec.org/images/
|
||||||
- cd /home/webmaster/articles
|
- cd /home/webmaster/articles
|
||||||
- git checkout -- .
|
|
||||||
- git pull
|
|
||||||
- rsync -avzlh --ignore-existing fichiers/ /var/lib/gsl/domains/chalec.org/files/
|
|
||||||
- rsync -avzlh --ignore-existing images/ /var/lib/gsl/domains/chalec.org/images/
|
|
||||||
- gsl check
|
- gsl check
|
||||||
|
|
||||||
|
|
||||||
deploy-job: # 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:
|
||||||
- echo "Déploiement..."
|
|
||||||
- cd /home/webmaster/articles
|
- cd /home/webmaster/articles
|
||||||
- |+
|
- |+
|
||||||
for postfile in $(ls *.gsl)
|
for postfile in $(ls *.gsl)
|
||||||
|
|
Loading…
Reference in New Issue