From f10f0539cc7ed0dc5a99a59a63d45f1752d6467b Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Sat, 15 Jun 2019 10:58:51 +0200 Subject: [PATCH] add ftp to CI --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c44134a..b375d7b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,11 +1,16 @@ image: aergus/latex # use a Docker image for LaTeX from https://hub.docker.com/ -pages: +deploy: stage: deploy variables: USER: "gitlab-runner" + before_script: + - apt-get update -qy + - apt-get install -y lftp + script: - ./compile.sh # build the pdf + - lftp -e "open sftp.zamok.crans.org; user $FTP_USERNAME $FTP_PASSWORD; mirror public/ www/m1-eea/; bye" artifacts: paths: - public # instruct GitLab to keep the public folder