Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ocm-engine
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
svdh
ocm-engine
Commits
9d0be194
Commit
9d0be194
authored
1 year ago
by
Veselin
Committed by
Zdravko Iliev
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: add rule for merge requests
parent
02d0bc18
No related branches found
No related tags found
1 merge request
!7
ci: add rule for merge requests
Pipeline
#62047
passed with stages
in 1 minute and 10 seconds
Changes
1
Pipelines
8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-10
10 additions, 10 deletions
.gitlab-ci.yml
with
10 additions
and
10 deletions
.gitlab-ci.yml
+
10
−
10
View file @
9d0be194
...
...
@@ -67,7 +67,7 @@ lint-agent:
-
amd64-docker
stage
:
lint
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
!=
"yes"'
-
if
:
'
$PIPELINE_TRIGGERED
!=
"yes"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
changes
:
-
apps/agent/*
-
apps/agent/deployment/*
...
...
@@ -104,7 +104,7 @@ test-agent:
tags
:
-
amd64-docker
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
!=
"yes"'
-
if
:
'
$PIPELINE_TRIGGERED
!=
"yes"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
changes
:
-
apps/agent/*
-
apps/agent/deployment/*
...
...
@@ -140,7 +140,7 @@ build-agent:
image
:
node:18
extends
:
.distributed
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
!=
"yes"'
-
if
:
'
$PIPELINE_TRIGGERED
!=
"yes"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
changes
:
-
apps/agent/*
-
apps/agent/deployment/*
...
...
@@ -185,7 +185,7 @@ docker-build-agent:
extends
:
.docker-build-agent
stage
:
docker
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
==
"no"'
-
if
:
'
$PIPELINE_TRIGGERED
==
"no"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
changes
:
-
apps/agent/*
-
apps/agent/deployment/*
...
...
@@ -213,7 +213,7 @@ google-image-agent:
extends
:
.agent-cloud
stage
:
registries
rules
:
-
if
:
'
$CI_COMMIT_TAG
==
null
&&
$PIPELINE_TRIGGERED
==
"no"'
-
if
:
'
$CI_COMMIT_TAG
==
null
&&
$PIPELINE_TRIGGERED
==
"no"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
changes
:
-
apps/agent/*
-
apps/agent/deployment/*
...
...
@@ -241,7 +241,7 @@ agent:
extends
:
.chart-trigger-agent
stage
:
helm
rules
:
-
if
:
'
$CI_COMMIT_TAG
==
null
&&
$PIPELINE_TRIGGERED
==
"no"'
-
if
:
'
$CI_COMMIT_TAG
==
null
&&
$PIPELINE_TRIGGERED
==
"no"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
changes
:
-
apps/agent/*
-
apps/agent/deployment/*
...
...
@@ -269,14 +269,14 @@ agent-test ocm:
stage
:
deploy-test
extends
:
.test-agent-ocm-one
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"'
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
when
:
manual
agent-test ocm-two
:
stage
:
deploy-test
extends
:
.test-agent-ocm-two
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"'
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
when
:
manual
# engine-test ocm:
...
...
@@ -301,14 +301,14 @@ agent-prod ocm:
stage
:
deploy-prod
extends
:
.prod-agent-ocm-one
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"'
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
when
:
manual
agent-prod ocm-two
:
stage
:
deploy-prod
extends
:
.prod-agent-ocm-two
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"'
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
'
when
:
manual
# engine-prod ocm:
...
...
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