2019-03-05 15:37:38 +01:00
|
|
|
image: aergus/latex # use a Docker image for LaTeX from https://hub.docker.com/
|
2019-03-05 15:31:54 +01:00
|
|
|
|
2019-06-15 10:58:51 +02:00
|
|
|
deploy:
|
2019-03-05 15:31:54 +01:00
|
|
|
stage: deploy
|
2019-03-05 15:37:38 +01:00
|
|
|
variables:
|
|
|
|
USER: "gitlab-runner"
|
2019-06-15 10:58:51 +02:00
|
|
|
before_script:
|
|
|
|
- apt-get update -qy
|
|
|
|
- apt-get install -y lftp
|
|
|
|
|
2019-03-05 15:31:54 +01:00
|
|
|
script:
|
2019-06-15 12:03:29 +02:00
|
|
|
# - make all -j8 # build the pdf
|
2019-06-20 10:23:15 +02:00
|
|
|
- echo $FTP_USER
|
|
|
|
- echo $FTP_PASSWORD
|
2019-06-20 10:39:55 +02:00
|
|
|
- lftp -e "set ftp:ssl-allow false; set sftp:auto-confirm yes; debug; mirror -R img www/m1-eea; bye" -u $FTP_USER,$FTP_PASSWORD sftp://zamok.crans.org
|
2019-03-05 15:31:54 +01:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public # instruct GitLab to keep the public folder
|
|
|
|
only:
|
|
|
|
- master # deploy the pdf only for commits made to the master branch
|