diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7660836691ab96e9b0b053cd2fb466337820909..8fcd2c9b697691b092100f5a3eacbc555d4c45e1 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: