1
0
mirror of synced 2024-12-22 12:40:00 +01:00

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] ac6352a5c7
This commit is contained in:
Hugo Hromic 2021-10-03 14:33:47 +00:00
parent cf999c94bf
commit 0dd9b24ff0

View File

@ -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