Skip to content

Commit

Permalink
website: node18 (#2842)
Browse files Browse the repository at this point in the history
* website: node18

* remove ci-link-checker image

* Update .circleci/config.yml
  • Loading branch information
krrrr38 authored Dec 20, 2022
1 parent b94575a commit ce8c89b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 66 deletions.
28 changes: 18 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,33 @@ jobs:
# muffet (https://github.com/raviqqe/muffet) to perform the link check.
website_link_check:
docker:
# This image's Dockerfile is at runatlantis.io/Dockerfile
- image: ghcr.io/runatlantis/ci-link-checker:2021.06.22
- image: cimg/node:18.12.1
environment:
# renovate: datasource=github-releases depName=raviqqe/muffet
MUFFET_VERSION: 2.6.2
steps:
- checkout
- run: |
# http-server is used to serve the website locally as muffet checks it.
yarn global add http-server
# install raviqqe/muffet to check for broken links.
curl -L https://github.com/raviqqe/muffet/releases/download/v${MUFFET_VERSION}/muffet_${MUFFET_VERSION}_Linux_x86_64.tar.gz | tar -xz
- run: yarn install
- run: yarn website:build
- run:
name: http-server
command: http-server runatlantis.io/.vuepress/dist
background: true
# We use dockerize -wait here to wait until the server is up.
- run:
name: wait until server listened
command: curl --retry-delay 1 --retry 30 --retry-all-error http://localhost:8080
- run: |
dockerize -wait tcp://localhost:8080 -- \
muffet \
-e 'https://github\.com/runatlantis/atlantis/edit/main/.*' \
-e 'https://github.com/runatlantis/helm-charts#customization' \
--header 'Accept-Encoding:deflate, gzip' \
--buffer-size 8192 \
http://localhost:8080/
./muffet \
-e 'https://github\.com/runatlantis/atlantis/edit/main/.*' \
-e 'https://github.com/runatlantis/helm-charts#customization' \
--header 'Accept-Encoding:deflate, gzip' \
--buffer-size 8192 \
http://localhost:8080/
workflows:
version: 2
Expand Down
16 changes: 0 additions & 16 deletions .github/website_link_checker/Dockerfile

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/ci-link-checker-image.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.21.2
18.12.1
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
},
"scripts": {
"website:dev": "vuepress dev runatlantis.io",
"website:build": "vuepress build runatlantis.io"
"website:build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build runatlantis.io"
}
}

0 comments on commit ce8c89b

Please sign in to comment.