Skip to content
Snippets Groups Projects
Commit ea4f95e3 authored by Joost Hemmen's avatar Joost Hemmen :basketball:
Browse files

Update file cve-scan.gitlab-ci.yml

parent a056b7fa
No related branches found
No related tags found
1 merge request!243Resolve "Document CVEs of images used in docker compose setup"
Pipeline #486861 canceled
......@@ -25,9 +25,14 @@ 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_COMMIT_BRANCH == "main" && $CI_PIPELINE_SOURCE == "push"'
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
tags:
- "dind"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment