.gitlab-ci.yml 545 Bytes
Newer Older
Pierre-antoine Comby's avatar
test  
Pierre-antoine Comby committed
1
image: aergus/latex # use a Docker image for LaTeX from https://hub.docker.com/
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
2

Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
3
deploy:
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
4
  stage: deploy
Pierre-antoine Comby's avatar
test  
Pierre-antoine Comby committed
5 6
  variables:
    USER: "gitlab-runner"
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
7 8 9 10
  before_script:
    - apt-get update -qy
    - apt-get install -y lftp

Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
11
  script:
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
12
    - make all -j8  # build the pdf
Pierre-antoine Comby's avatar
again  
Pierre-antoine Comby committed
13
    - lftp -e "set ftp:ssl-allow false; mirror public/ www/m1-eea/; bye" -u $FTP_USER,$FTP_PASSWORD zamok.crans.org
Pierre-antoine Comby's avatar
Pierre-antoine Comby committed
14 15 16 17 18
  artifacts:
    paths:
      - public  # instruct GitLab to keep the public folder
  only:
    - master  # deploy the pdf only for commits made to the master branch