Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): website: node18 #2842

Merged
merged 3 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}