cdist-contrib/.gitlab-ci.yml

30 lines
688 B
YAML
Raw Normal View History

2020-05-07 07:29:03 +00:00
stages:
- test
- 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:
- make lint
2020-05-07 07:29:03 +00:00
manpages:
stage: test
script:
- make check-manpages
docs:
stage: doc
only:
2021-02-16 12:47:09 +00:00
- master@ungleich-public/cdist-contrib
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 html
- sftp fnux@staticwebhosting.ungleich.ch:public_html/cdist-contrib <<< "put -r docs/dist/html/*"