.gitlab-ci.yml 1.1 KB
Newer Older
1
stages:
2
  - trigger pipelines
3

4
5
6
variables:
  IMAGE_REGISTRY_URL: $CI_REGISTRY/dumux-repositories/dumux-docker-ci

7
# rules for the default triggers:
Dennis Gläser's avatar
Dennis Gläser committed
8
# - pipelines are triggered for merge requests and external triggers (e.g. nightly build in dumux)
9
# - Within merge requests, we require to start the pipeline manually by clicking play for the trigger
10
# - if the pipeline was triggered externally (from dumux), we may receive merge-request-related variables
11
12
13
14
15
16
.default-trigger:
  stage: trigger pipelines
  trigger:
    include:
      - local: .gitlab-ci/default.yml
    strategy: depend
17
  rules:
18
    - if: $CI_PIPELINE_SOURCE == "pipeline"
19
20
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      when: manual
21
  variables:
22
23
    TRIGGER_SOURCE: $CI_PIPELINE_SOURCE
    MR_TARGET_BRANCH_NAME: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
24
25
26
    DUMUX_PIPELINE_SOURCE: $DUMUX_PIPELINE_SOURCE
    DUMUX_MR_SOURCE_BRANCH: $DUMUX_MERGE_REQUEST_SOURCE_BRANCH
    DUMUX_MR_TARGET_BRANCH: $DUMUX_MERGE_REQUEST_TARGET_BRANCH
27

28
full-dune-2.7-gcc:
29
30
  extends: .default-trigger
  variables:
31
    IMAGE: $IMAGE_REGISTRY_URL/full:dune-2.7-gcc-ubuntu-20.04