From 9e32c0e120737092235f99fdb7ddafcc44f2fded Mon Sep 17 00:00:00 2001 From: Tammo Jan Dijkema <T.J.Dijkema@gmail.com> Date: Tue, 14 Apr 2020 14:33:00 +0200 Subject: [PATCH] Deploy docs to dop288 --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7660836..8fcd2c9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ stages: - build-base - build-lofarbeam - build-doc + - deploy-doc - build-dependency - test-dependency - deploy @@ -44,6 +45,21 @@ build-doc: paths: - htmldoc +deploy-doc: + stage: deploy-doc + before_script: + - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | base64 -d | ssh-add - + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - ssh-keyscan -H dop288 > ~/.ssh/known_hosts + script: + - scp -r htmldoc/* citt@dop288:LOFARBeam + only: + refs: + - master + build-dp3: stage: build-dependency script: -- GitLab