Verified Commit 51011383 authored by Adrian Pascu's avatar Adrian Pascu
Browse files

Disable all CI jobs except the prod deploy to conserve pipeline credits

parent 6ee04923
Loading
Loading
Loading
Loading
Loading
+7 −4
Changes for .gitlab-ci.yml: 7 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -51,8 +51,7 @@ Build:
lint:
  extends: .nodejs
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "schedule"'
    - when: never
  script:
    - pnpm run lint
  allow_failure: true
@@ -72,6 +71,8 @@ lint:

link-check-local:
  extends: .lychee
  rules:
    - when: never
  script:
    - |
      if grep -rnE 'https?://(www\.)?hsbxl\.be' content/; then
@@ -87,6 +88,8 @@ link-check-local:

link-check-remote:
  extends: .lychee
  rules:
    - when: never
  resource_group: web-scanning
  cache:
    key: lychee
@@ -106,7 +109,7 @@ link-check-remote:
pages:
  stage: Deploy
  image: debian:trixie
  needs: ["Build", "link-check-local"]
  needs: ["Build"]
  environment:
    name: Production
    url: https://hsbxl.be
@@ -127,7 +130,7 @@ Deploy Staging:
    name: Staging
    url: https://staging.hsbxl.be
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $PRIVKEY'
    - when: never
  resource_group: ssh
  script:
    - apt-get update