fix(ci): correct image for generating slate docs
ci/woodpecker/pr/test Pipeline is pending Details
ci/woodpecker/pr/lint Pipeline failed Details
ci/woodpecker/pr/docs Pipeline failed Details
ci/woodpecker/pr/docker unknown status Details
ci/woodpecker/pr/man unknown status Details
ci/woodpecker/pr/build Pipeline failed Details

Jef Roosens 2023-02-15 21:02:50 +01:00
parent a3a83a94ae
commit cd67fc862f
1 changed files with 6 additions and 3 deletions

View File

@ -23,14 +23,17 @@ pipeline:
slate-docs: slate-docs:
image: 'slatedocs/slate' image: 'slatedocs/slate'
group: 'generate' group: 'generate'
# Slate requires a specific directory to run in
commands: commands:
- cd docs/api - mv "$CI_WORKSPACE/docs/api" /srv/slate/source
- bundle exec middleman build --clean - cd /srv/slate
- /srv/slate/slate.sh build
- mv /srv/slate/build "$CI_WORKSPACE/docs/api-build"
archive: archive:
image: 'alpine' image: 'alpine'
commands: commands:
- cp -r docs/api/build docs/public/api - cp -r docs/api-build docs/public/api
- 'cd docs/public && tar czvf ../../docs.tar.gz *' - 'cd docs/public && tar czvf ../../docs.tar.gz *'
- 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *' - 'cd ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
when: when: