diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 31505a5..4b61568 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,5 +16,16 @@ manpages: docs: stage: doc + only: + - master + before_script: + - eval $(ssh-agent -s) + - echo "$CD_SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null + - mkdir -p ~/.ssh + - echo "$CD_SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts script: - make docs + - sftp fnux@staticwebhosting.ungleich.ch:public_html/cdist-contrib <<- EOF + put -r docs/dist/html/* + EOF diff --git a/scripts/ci-container/Dockerfile b/scripts/ci-container/Dockerfile index 33646f4..daa0f26 100644 --- a/scripts/ci-container/Dockerfile +++ b/scripts/ci-container/Dockerfile @@ -4,4 +4,4 @@ FROM fedora:latest MAINTAINER Timothée Floure RUN dnf install -y git findutils make python3-sphinx python3-sphinx_rtd_theme \ - ShellCheck + ShellCheck openssh-clients