Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
catladder
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
catladder
catladder
Commits
b1f30265
Commit
b1f30265
authored
1 year ago
by
Michael
Committed by
Marco Wettstein
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
refactor(ci-includes): manual release rules
parent
3746b1ba
No related branches found
No related tags found
1 merge request
!225
feat(pipeline): do not create pipeline from schedules
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci-includes/src/createGitlabBaseInclude.ts
+2
-14
2 additions, 14 deletions
ci-includes/src/createGitlabBaseInclude.ts
pipeline/src/rules/index.ts
+12
-0
12 additions, 0 deletions
pipeline/src/rules/index.ts
with
14 additions
and
14 deletions
ci-includes/src/createGitlabBaseInclude.ts
+
2
−
14
View file @
b1f30265
...
@@ -6,9 +6,7 @@ import {
...
@@ -6,9 +6,7 @@ import {
RULES_ALWAYS
,
RULES_ALWAYS
,
getRunnerImage
,
getRunnerImage
,
RULES_RELEASE
,
RULES_RELEASE
,
RULE_NEVER_ON_RELEASE_COMMIT
,
RULES_MANUAL_RELEASE
,
RULE_CONDITION_MAIN_BRANCH
,
RULE_CONDITION_HOTFIX_BRANCH
,
}
from
"
@catladder/pipeline
"
;
}
from
"
@catladder/pipeline
"
;
type
GitlabJobDefWithTrigger
=
Omit
<
GitlabJobDef
,
"
script
"
>
&
{
type
GitlabJobDefWithTrigger
=
Omit
<
GitlabJobDef
,
"
script
"
>
&
{
...
@@ -72,17 +70,7 @@ export const createGitlabBaseInclude = () => {
...
@@ -72,17 +70,7 @@ export const createGitlabBaseInclude = () => {
image
:
getRunnerImage
(
"
semantic-release
"
),
image
:
getRunnerImage
(
"
semantic-release
"
),
script
:
[
"
semanticRelease
"
],
script
:
[
"
semanticRelease
"
],
needs
:
[],
needs
:
[],
rules
:
[
rules
:
RULES_MANUAL_RELEASE
,
RULE_NEVER_ON_RELEASE_COMMIT
,
{
if
:
RULE_CONDITION_MAIN_BRANCH
,
when
:
"
manual
"
,
},
{
if
:
RULE_CONDITION_HOTFIX_BRANCH
,
when
:
"
manual
"
,
},
],
},
},
};
};
return
{
return
{
...
...
This diff is collapsed.
Click to expand it.
pipeline/src/rules/index.ts
+
12
−
0
View file @
b1f30265
...
@@ -41,3 +41,15 @@ export const RULES_RELEASE: GitlabRule[] = [
...
@@ -41,3 +41,15 @@ export const RULES_RELEASE: GitlabRule[] = [
when
:
"
manual
"
,
when
:
"
manual
"
,
},
},
];
];
export
const
RULES_MANUAL_RELEASE
:
GitlabRule
[]
=
[
RULE_NEVER_ON_RELEASE_COMMIT
,
{
if
:
RULE_CONDITION_MAIN_BRANCH
,
when
:
"
manual
"
,
},
{
if
:
RULE_CONDITION_HOTFIX_BRANCH
,
when
:
"
manual
"
,
},
];
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