Automatically deploy docs from master (at contrib.cdi.st)

This commit is contained in:
fnux 2021-01-11 10:55:25 +01:00
parent cd83336322
commit 2bedbe9687
No known key found for this signature in database
GPG key ID: 4502C902C00A1E12
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -4,4 +4,4 @@ FROM fedora:latest
MAINTAINER Timothée Floure <fnux@ungleich.ch>
RUN dnf install -y git findutils make python3-sphinx python3-sphinx_rtd_theme \
ShellCheck
ShellCheck openssh-clients