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
c6d96f30
Commit
c6d96f30
authored
1 year ago
by
Veselin
Committed by
Zdravko Iliev
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: add rules for prod environment
parent
9d0be194
No related branches found
Branches containing commit
Tags
v1.1.0
Tags containing commit
1 merge request
!8
ci: add rules for prod environment
Pipeline
#62314
canceled with stages
in 5 seconds
Changes
2
Pipelines
33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
apps/agent/deployment/Dockerfile
+1
-1
1 addition, 1 deletion
apps/agent/deployment/Dockerfile
with
3 additions
and
3 deletions
.gitlab-ci.yml
+
2
−
2
View file @
c6d96f30
...
...
@@ -301,14 +301,14 @@ agent-prod ocm:
stage
:
deploy-prod
extends
:
.prod-agent-ocm-one
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"'
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
&&
$MAIN_PROD
==
"yes"
&&
$GITLAB_USER_LOGIN
=~
$AUTORIZED_USERS
'
when
:
manual
agent-prod ocm-two
:
stage
:
deploy-prod
extends
:
.prod-agent-ocm-two
rules
:
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"'
-
if
:
'
$PIPELINE_TRIGGERED
==
"yes"
&&
$APP
==
"agent"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
&&
$MAIN_PROD
==
"yes"
&&
$GITLAB_USER_LOGIN
=~
$AUTORIZED_USERS
'
when
:
manual
# engine-prod ocm:
...
...
This diff is collapsed.
Click to expand it.
apps/agent/deployment/Dockerfile
+
1
−
1
View file @
c6d96f30
FROM
nginx:alpine
EXPOSE
80
COPY
./dist .
\ No newline at end of file
COPY
./dist .
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