Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsm-orchestration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UFZ TSM
tsm-orchestration
Commits
7b2c5103
Commit
7b2c5103
authored
1 month ago
by
Joost Hemmen
Browse files
Options
Downloads
Patches
Plain Diff
rework job rules
parent
ea4f95e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!243
Resolve "Document CVEs of images used in docker compose setup"
Pipeline
#486868
canceled
1 month ago
Stage: integration
Stage: end-to-end
Stage: scan
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/ci/cve-scan.gitlab-ci.yml
+4
-8
4 additions, 8 deletions
.gitlab/ci/cve-scan.gitlab-ci.yml
with
4 additions
and
8 deletions
.gitlab/ci/cve-scan.gitlab-ci.yml
+
4
−
8
View file @
7b2c5103
...
...
@@ -25,14 +25,10 @@ docker-image-scan:
-
"
*.cve"
expire_in
:
30 days
rules
:
#
This will ensure the job only runs on pushes to the `main` branch (not MRs or other branches)
-
if
:
'
$CI_
COMMI
T_BRANCH
==
"main"
&&
$CI_PIPELINE_SOURCE
==
"
push
"'
#
Run only when a merge request is merged into the `main` branch
-
if
:
'
$CI_
MERGE_REQUEST_TARGE
T_BRANCH
_NAME
==
"main"
&&
$CI_PIPELINE_SOURCE
==
"
merge_request_event"
&&
$CI_MERGE_REQUEST_EVENT_TYPE
==
"merged
"'
when
:
always
# This will prevent the job from running for any branch other than `main`
-
if
:
'
$CI_COMMIT_BRANCH
!=
"main"'
when
:
never
# This ensures that the job does not run if triggered by a merge request pipeline
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
never
# Prevent the job from running in all other cases
-
when
:
never
tags
:
-
"
dind"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment