Skip to content
Snippets Groups Projects
Commit 15e57562 authored by Vignesh Raman's avatar Vignesh Raman
Browse files

Workflow

parent 03cb6f83
Branches
Tags
No related merge requests found
Pipeline #134126 failed
...@@ -2,42 +2,19 @@ ...@@ -2,42 +2,19 @@
# #
# Copyright (C) 2024 Collabora, Helen Koike <helen.koike@collabora.com> # Copyright (C) 2024 Collabora, Helen Koike <helen.koike@collabora.com>
# YAML anchors for rule conditions workflow:
# -------------------------------- name: $PIPELINE_NAME
.rules-anchors:
rules: rules:
# do not duplicate pipelines on merge pipelines
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never when: never
# merge pipeline - if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"
- if: &is-merge-attempt $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"
# post-merge pipeline
- if: &is-post-merge $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "push"
# Pre-merge pipeline
- if: &is-pre-merge $CI_PIPELINE_SOURCE == "merge_request_event"
# Push to a branch on a fork
- if: &is-fork-push $CI_PIPELINE_SOURCE == "push"
# nightly pipeline
- if: &is-scheduled-pipeline $CI_PIPELINE_SOURCE == "schedule"
# pipeline for direct pushes that bypassed the CI
- if: &is-direct-push $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot"
.container+build-rules:
rules:
# Build everything in merge pipelines
- if: *is-merge-attempt
when: on_success when: on_success
# Same as above, but for pre-merge pipelines - if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: *is-pre-merge
when: manual when: manual
# Build everything after someone bypassed the CI - if: $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot"
- if: *is-direct-push
when: manual when: manual
# Build everything in scheduled pipelines - if: $CI_PIPELINE_SOURCE == "schedule"
- if: *is-scheduled-pipeline
when: on_success when: on_success
# Allow building everything in fork pipelines, but build nothing unless
# manually triggered
- when: manual - when: manual
variables: variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment