From af47299fca4c0363f1089b47ebe5d7037a9f3c58 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 15 Feb 2023 21:02:50 +0100 Subject: [PATCH 1/2] fix(ci): correct image for generating slate docs --- .woodpecker/docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker/docs.yml b/.woodpecker/docs.yml index 98f5060..435028e 100644 --- a/.woodpecker/docs.yml +++ b/.woodpecker/docs.yml @@ -22,10 +22,11 @@ pipeline: slate-docs: image: 'slatedocs/slate' + pull: true group: 'generate' commands: - cd docs/api - - bundle exec middleman build --clean + - bundle exec middleman build --clean --watcher-disable archive: image: 'alpine' From e4449586c93867f66e52372503cc06635b706de6 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 15 Feb 2023 21:02:50 +0100 Subject: [PATCH 2/2] 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..9400303 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 + directory: '/srv/slate' commands: - - cd docs/api - - bundle exec middleman build --clean + - mv "${CI_WORKSPACE}/docs/api" source + - bundle exec middleman build --clean --watcher-disable + - mv 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: