Skip to content

Commit

Permalink
chore: Further adjust/restrict when some CI jobs run
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Mar 8, 2023
1 parent ac4878c commit 6caee38
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,18 @@ dashboard-release-build:
extends:
- .docker-base
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
changes:
- dashboard/**/*
- rs/**/*
- if: '$CI_PIPELINE_SOURCE == "push"'
when: manual
- if: '$CI_PIPELINE_SOURCE == "web"'
when: manual
allow_failure: true # the pipeline continues running even if the manual job is not run
- if: '$CI_PIPELINE_SOURCE == "trigger"'
when: manual
allow_failure: true # the pipeline continues running even if the manual job is not run
- changes:
- dashboard/**/*
- rs/**/*
script:
- |
set -exou pipefail
Expand Down Expand Up @@ -539,6 +540,8 @@ metrics-proxy-release:
when: manual
allow_failure: true # the pipeline continues running even if the manual job is not run
- if: '$CI_PIPELINE_SOURCE == "push"'
when: manual
allow_failure: true # the pipeline continues running even if the manual job is not run
interruptible: true
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
Expand Down Expand Up @@ -571,6 +574,8 @@ linear-jira-release:
when: manual
allow_failure: true # the pipeline continues running even if the manual job is not run
- if: '$CI_PIPELINE_SOURCE == "push"'
when: manual
allow_failure: true # the pipeline continues running even if the manual job is not run
interruptible: true
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
Expand Down

0 comments on commit 6caee38

Please sign in to comment.