From 8aba14b2418dcba8e3696828a9f44b78d9642b0a Mon Sep 17 00:00:00 2001 From: Tom Wiesing <tkw01536@gmail.com> Date: Thu, 29 Mar 2018 20:19:18 +0200 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 50694c1..6e11a24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,10 +15,10 @@ before_script: # install rsync, unless already there - 'which rsync || ( apt-get update -y && apt-get install rsync -y )' - + # install bundler, unless already there - 'which bundle || ( gem install bundler )' - + # and install the bundle - bundle install @@ -28,12 +28,14 @@ before_script: - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + + deploy_staging: stage: deploy script: # build the website - bundle exec jekyll build -d _site # copy over all the files into the deployment folder - - cd _site && rsync -rv -e ssh --checksum ./ deploy@static.kwarc.info:/var/www/SIGMathLing.kwarc.info --delete + - cd _site && rsync -rv -e "ssh -p $SSH_DEPLOY_PORT" --checksum --exclude='Gemfile' --delete-excluded --delete ./ root@static.kwarc.info:/root/data --delete only: - - master + - master \ No newline at end of file -- GitLab