Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gitleaks
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
Model registry
Operate
Environments
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
SmartDataLab
public
CI-CD components
Gitleaks
Commits
a4b454e2
Commit
a4b454e2
authored
1 year ago
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
feat(workflow): extend (skip ci) feature
parent
80db2b87
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-gitleaks.yml
+14
-0
14 additions, 0 deletions
templates/gitlab-ci-gitleaks.yml
with
14 additions
and
0 deletions
templates/gitlab-ci-gitleaks.yml
+
14
−
0
View file @
a4b454e2
...
...
@@ -19,6 +19,20 @@ workflow:
# prevent branch pipeline when an MR is open (prefer MR pipeline)
-
if
:
'
$CI_COMMIT_BRANCH
&&
$CI_OPEN_MERGE_REQUESTS'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*tag(,[^],]*)*\]/"
&&
$CI_COMMIT_TAG'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*branch(,[^],]*)*\]/"
&&
$CI_COMMIT_BRANCH'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*mr(,[^],]*)*\]/"
&&
$CI_MERGE_REQUEST_ID'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*default(,[^],]*)*\]/"
&&
$CI_COMMIT_REF_NAME
=~
$CI_DEFAULT_BRANCH'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*prod(,[^],]*)*\]/"
&&
$CI_COMMIT_REF_NAME
=~
$PROD_REF'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*integ(,[^],]*)*\]/"
&&
$CI_COMMIT_REF_NAME
=~
$INTEG_REF'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*dev(,[^],]*)*\]/"
&&
$CI_COMMIT_REF_NAME
!~
$PROD_REF
&&
$CI_COMMIT_REF_NAME
!~
$INTEG_REF'
when
:
never
-
when
:
always
# test job prototype: implement adaptive pipeline rules
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
9b556ee9
·
9 months ago
mentioned in commit
9b556ee9
mentioned in commit 9b556ee924b395d81b1333ae1073e7a9683f0564
Toggle commit list
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