Skip to content
Snippets Groups Projects
Commit 1944fb0d authored by Bertrand Goareguer's avatar Bertrand Goareguer
Browse files

Apply 2 suggestion(s) to 1 file(s)

parent 991dbff4
Branches
No related tags found
No related merge requests found
......@@ -216,14 +216,13 @@ workflow:
# else (Ready MR): auto & failing
- when: on_success
.release-policy:
# software delivery job prototype: run on production and integration branches + release pipelines
.delivery-policy:
rules:
# TBC_SBOM_MODE=always, on any branch: auto & failing
- if: '$TBC_SBOM_MODE == "always"'
# TBC_SBOM_MODE=onrelease, on tag with release pattern: auto & failing
- if: '$TBC_SBOM_MODE == "onrelease" && $CI_COMMIT_TAG =~ $RELEASE_REF'
# TBC_SBOM_MODE=onrelease, on production and integration branch(es): auto & failing
- if: '$TBC_SBOM_MODE == "onrelease" && ($CI_COMMIT_REF_NAME =~ $PROD_REF || $CI_COMMIT_REF_NAME =~ $INTEG_REF)'
# on tag with release pattern
- if: '$CI_COMMIT_TAG =~ $RELEASE_REF'
# on production or integration branch(es)
- if: '$CI_COMMIT_REF_NAME =~ $PROD_REF || $CI_COMMIT_REF_NAME =~ $INTEG_REF'
variables:
# variabilized tracking image
......@@ -1043,7 +1042,13 @@ docker-sbom:
# exclude if disabled (template specific)
- if: '$DOCKER_SBOM_DISABLED == "true"'
when: never
- !reference [.release-policy, rules]
# 'always' mode: run
- if: '$TBC_SBOM_MODE == "always"'
# exclude unsupported modes
- if: '$TBC_SBOM_MODE != "onrelease"'
when: never
# 'onrelease' mode: use common software delivery rules
- !reference [.delivery-policy, rules]
# ==================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment