fix(ci): correct image for generating slate docs

Jef Roosens 2023-02-15 21:02:50 +01:00 committed by Chewing_Bever
parent a3a83a94ae
commit b0c30c59eb
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 7 additions and 3 deletions

View File

@ -23,14 +23,18 @@ pipeline:
slate-docs:
image: 'slatedocs/slate'
group: 'generate'
# Slate requires a specific directory to run in
commands:
- cd docs/api
- bundle exec middleman build --clean
- rm -rf /srv/slate/source
- mv "$CI_WORKSPACE/docs/api" /srv/slate/source
- cd /srv/slate
- /srv/slate/slate.sh build
- mv /srv/slate/build "$CI_WORKSPACE/docs/api-build"
archive:
image: 'alpine'
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 ../../src/_docs && tar czvf ../../api-docs.tar.gz *'
when: