From c7bf3c6aad71b00bb55ea6dfe7160322c8beb023 Mon Sep 17 00:00:00 2001 From: Paul Bauer Date: Thu, 24 Sep 2020 14:46:18 +0000 Subject: [PATCH] Allow deployment of nightly webpage to server Still needs to have variables defined on Gitlab. Change-Id: Id7378942555b69df19cbe377d7c90851d6cf56ba --- admin/gitlab-ci/archive.gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/admin/gitlab-ci/archive.gitlab-ci.yml b/admin/gitlab-ci/archive.gitlab-ci.yml index c7eaf5a1ee..066f4d6732 100644 --- a/admin/gitlab-ci/archive.gitlab-ci.yml +++ b/admin/gitlab-ci/archive.gitlab-ci.yml @@ -256,8 +256,17 @@ archive:nightly-webpage: - job: webpage:build variables: BUILD_DIR: build-docs + before_script: + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - ssh-keyscan www.gromacs.org > ~/.ssh/known_hosts # Force overwrite the known hosts so we only have that one key in it. + - chmod 644 ~/.ssh/known_hosts script: - tar czf webpage.tar.gz $BUILD_DIR/docs/html/ + - rsync --chmod=u+rwX,g+rwX,o+rX -av $BUILD_DIR/docs/html/* $BUILD_DIR/docs/html/.[a-z]* pbauer@www.gromacs.org:/var/www/manual/nightly/ + artifacts: when: always paths: -- 2.22.0