Verified Commit 900c5f11 authored by Adrian Pascu's avatar Adrian Pascu
Browse files

Let the scheduled deploy and link check wait for a CI worker that is up anyway

parent b303ac5d
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,9 +2,13 @@ stages:
  - Build
  - Deploy

variables:
  RUNNER_WAIT: ""

default:
  interruptible: true
  timeout: 10m
  tags: [$RUNNER_WAIT]
  retry:
    max: 2
    when:
@@ -15,6 +19,12 @@ workflow:
  auto_cancel:
    on_new_commit: interruptible
  rules:
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_TASK == "linkcheck"'
      variables:
        RUNNER_WAIT: wait-12h
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule"'
      variables:
        RUNNER_WAIT: wait-4h
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"