From cd67fc862f8b73a9ceb65c8ac9e52d8979fa3429 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 15 Feb 2023 21:02:50 +0100 Subject: [PATCH] fix(ci): correct image for generating slate docs --- .woodpecker/docs.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml index 98f5060..efd0930 100644 --- a/.woodpecker/docs.yml +++ b/.woodpecker/docs.yml @@ -23,14 +23,17 @@ 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 + - 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: