From 0dd9b24ff0a5d20fbe4e81b564c8fc30a15f7a11 Mon Sep 17 00:00:00 2001 From: Hugo Hromic Date: Sun, 3 Oct 2021 14:33:47 +0000 Subject: [PATCH] fix: CI failing to deploy due to default insecure TLS cipher suite (tlsv1) * the `node:10` image uses tlsv1 by default which is now rejected by `repology.org` * using `node:14-buster` instead (`npx` requires non-root in `node:16`) * using `buster` instead of `bullseye` due to `--no-sandbox` not working * using `gitbook-cli@2.2.0` due to later versions failing with node 12+ [1] * extra: removed obsolete `sed` fix-up as this was added upstream in `svgexport` [2] [1] https://github.com/GitbookIO/gitbook-cli/issues/110 [2] https://github.com/shakiba/svgexport/commit/ac6352a5c7bdb9cfdfbe61c35b37e1ae8846d253 --- .gitlab-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index abc46a3..3910f08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,7 +13,7 @@ test_code: - cmake --build build -t test pages: - image: node:10 + image: node:14-buster stage: deploy only: - master @@ -22,14 +22,12 @@ pages: - node_modules/ before_script: - apt-get update && apt-get install -y calibre calibre-bin libxss1 libasound2 - - npm install gitbook-cli svgexport + - npm install gitbook-cli@2.2.0 svgexport - npx gitbook fetch 3.2.3 - npx gitbook install script: - npx gitbook build . public - - 'sed -i "s/puppeteer.launch();/puppeteer.launch({args: [\"--no-sandbox\"]});/g" node_modules/svgexport/render.js' - - npx gitbook pdf . modern-cmake.pdf - - cp modern-cmake.pdf public/modern-cmake.pdf + - npx gitbook pdf . public/modern-cmake.pdf artifacts: paths: - public