Skip to content

Commit

Permalink
remove ci-link-checker image
Browse files Browse the repository at this point in the history
  • Loading branch information
krrrr38 committed Dec 20, 2022
1 parent 0ba8919 commit 7f2fb06
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 64 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/terraform
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.

0 comments on commit 7f2fb06

Please sign in to comment.