You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
895 B

# jobs belong to a stage. the jobs of a stage are run in parallel.
# stages are run in sequence.
# artifacts are attached to the jobs on success (downloadable from UI)
# cache is preserved between pipelines (and not meant for jobs)
default:
image: cloudron/docs-ci@sha256:7a7264ea9da09a53be7de3b85141fae5165534cf0fa7a134fa0c665484f0152b
variables:
DOCS_SERVER: docs.cloudron.io
build-docs:
stage: build
script:
- redoc-cli bundle cloudron_api_swagger.yaml --output "dist/api.html" --title "Cloudron API Docs" --disableGoogleFont=true
- cd knowledgebase && LC_ALL=C.UTF-8 LANG=C.UTF-8 mkdocs build --dirty --site-dir "../dist/"
artifacts:
paths:
- dist/
expire_in: 2 hours
deploy-docs:
stage: deploy
script:
- surfer put --server ${DOCS_SERVER} --token ${CLOUDRON_DOCS_SURFER_TOKEN} --delete dist/* /
only:
- master
stages:
- build
- deploy