cours-m1-eea/.gitlab-ci.yml

22 lines
803 B
YAML
Raw Permalink Normal View History

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:
2019-06-25 22:00:02 +02:00
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_KEY" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan zamok.crans.org >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
2019-03-05 15:31:54 +01:00
script:
2019-06-20 10:43:00 +02:00
- make all -j8 # build the pdf
2019-06-25 22:04:13 +02:00
- scp public/* comby@zamok.crans.org:www/m1-eea
2019-06-25 22:00:02 +02:00
# - lftp -e "set ftp:ssl-allow false; set sftp:auto-confirm yes; mirror -R public www/m1-eea; bye" -u $FTP_USER,$FTP_PASSWORD sftp://zamok.crans.org
2019-03-05 15:31:54 +01:00
only:
- master # deploy the pdf only for commits made to the master branch