cours-m1-eea/.gitlab-ci.yml
Pierre-antoine Comby 9d7f76ea33 debugging CI
2019-06-20 10:23:15 +02:00

20 lines
602 B
YAML

image: aergus/latex # use a Docker image for LaTeX from https://hub.docker.com/
deploy:
stage: deploy
variables:
USER: "gitlab-runner"
before_script:
- apt-get update -qy
- apt-get install -y lftp
script:
# - make all -j8 # build the pdf
- echo $FTP_USER
- echo $FTP_PASSWORD
- lftp -e "set ftp:ssl-allow false;debug; mirror -R img www/m1-eea; bye" -u $FTP_USER,$FTP_PASSWORD ftp://zamok.crans.org
artifacts:
paths:
- public # instruct GitLab to keep the public folder
only:
- master # deploy the pdf only for commits made to the master branch