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.
 
 
 
 

32 lines
983 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:66a0a4e5a20558b86211f818195bc6a1f40a94a6f867f86c134f61b271798fe2
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/* /
- surfer del --server ${DOCS_SERVER} --token ${CLOUDRON_DOCS_SURFER_TOKEN} 404.html
only:
- master
stages:
- build
- deploy