Commit df5a7c72 authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

ci: use built-in links checker job

Eat your own dog food.
parent 83201146
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ include:

variables:
  MKD_SITE_DIR: "public"
  MKD_LYCHEE_ENABLED: "true"
  MKD_LYCHEE_ARGS: "--exclude http://127.0.0.1 --exclude https://my-nonprod-k8s.domain --exclude '/static/intro$' --exclude-path SECURITY.md --exclude-path docs/ref/templates-stages-body.part.html --exclude-path docs/secu/ *.md docs/ static/"

  # deploy: landing page (static/), mkdocs build (public/), Angular build (kicker/dist/) and aggregated kicker (kicker-aggregated/)
  S3_DEPLOY_FILES: "static/ public/ kicker-aggregated.json"
@@ -77,15 +79,6 @@ scan-images:
      when: manual
      allow_failure: true

check-links:
  image:
    name: "registry.hub.docker.com/lycheeverse/lychee:latest"
    entrypoint: [""]
  stage: build
  script:
    - lychee --exclude http://127.0.0.1 --exclude https://my-nonprod-k8s.domain --exclude '/static/intro$' --exclude-path SECURITY.md --exclude-path docs/ref/templates-stages-body.part.html --exclude-path docs/secu/ *.md docs/ static/
  allow_failure: true

# publish on GitLab pages: only on master
pages:
  stage: deploy