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:
parent
cf999c94bf
commit
0dd9b24ff0
|
@ -13,7 +13,7 @@ test_code:
|
||||||
- cmake --build build -t test
|
- cmake --build build -t test
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
image: node:10
|
image: node:14-buster
|
||||||
stage: deploy
|
stage: deploy
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
@ -22,14 +22,12 @@ pages:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update && apt-get install -y calibre calibre-bin libxss1 libasound2
|
- 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 fetch 3.2.3
|
||||||
- npx gitbook install
|
- npx gitbook install
|
||||||
script:
|
script:
|
||||||
- npx gitbook build . public
|
- npx gitbook build . public
|
||||||
- 'sed -i "s/puppeteer.launch();/puppeteer.launch({args: [\"--no-sandbox\"]});/g" node_modules/svgexport/render.js'
|
- npx gitbook pdf . public/modern-cmake.pdf
|
||||||
- npx gitbook pdf . modern-cmake.pdf
|
|
||||||
- cp modern-cmake.pdf public/modern-cmake.pdf
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
Loading…
Reference in New Issue