2020-05-07 07:29:03 +00:00
|
|
|
stages:
|
|
|
|
- test
|
2021-01-04 10:04:07 +00:00
|
|
|
- doc
|
2020-05-07 07:29:03 +00:00
|
|
|
|
2021-01-04 10:26:45 +00:00
|
|
|
image: code.ungleich.ch:5050/ungleich-public/cdist-contrib/ci-container:latest
|
2020-05-07 07:29:03 +00:00
|
|
|
|
|
|
|
shellcheck:
|
|
|
|
stage: test
|
|
|
|
script:
|
2021-01-04 10:04:07 +00:00
|
|
|
- make lint
|
2020-05-07 07:29:03 +00:00
|
|
|
|
|
|
|
manpages:
|
|
|
|
stage: test
|
|
|
|
script:
|
2021-01-04 10:04:07 +00:00
|
|
|
- make check-manpages
|
|
|
|
|
|
|
|
docs:
|
|
|
|
stage: doc
|
2021-01-11 09:55:25 +00:00
|
|
|
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
|
2021-01-04 10:04:07 +00:00
|
|
|
script:
|
|
|
|
- make docs
|
2021-01-11 10:05:09 +00:00
|
|
|
- sftp fnux@staticwebhosting.ungleich.ch:public_html/cdist-contrib <<< "put -r docs/dist/html/*"
|