Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
TFS
controller
Commits
24db00d0
Commit
24db00d0
authored
1 year ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Fix CI/CD pipeline
parent
49e68279
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!235
Release TeraFlowSDN 3.0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+11
-11
11 additions, 11 deletions
.gitlab-ci.yml
src/webui/.gitlab-ci.yml
+25
-25
25 additions, 25 deletions
src/webui/.gitlab-ci.yml
with
36 additions
and
36 deletions
.gitlab-ci.yml
+
11
−
11
View file @
24db00d0
...
...
@@ -23,25 +23,25 @@ stages:
# include the individual .gitlab-ci.yml of each micro-service
include
:
#- local: '/manifests/.gitlab-ci.yml'
#
- local: '/src/monitoring/.gitlab-ci.yml'
#
- local: '/src/nbi/.gitlab-ci.yml'
-
local
:
'
/src/monitoring/.gitlab-ci.yml'
-
local
:
'
/src/nbi/.gitlab-ci.yml'
-
local
:
'
/src/context/.gitlab-ci.yml'
-
local
:
'
/src/device/.gitlab-ci.yml'
-
local
:
'
/src/service/.gitlab-ci.yml'
#
- local: '/src/dbscanserving/.gitlab-ci.yml'
#
- local: '/src/opticalattackmitigator/.gitlab-ci.yml'
#
- local: '/src/opticalattackdetector/.gitlab-ci.yml'
#
- local: '/src/opticalattackmanager/.gitlab-ci.yml'
-
local
:
'
/src/dbscanserving/.gitlab-ci.yml'
-
local
:
'
/src/opticalattackmitigator/.gitlab-ci.yml'
-
local
:
'
/src/opticalattackdetector/.gitlab-ci.yml'
#- local: '/src/opticalattackmanager/.gitlab-ci.yml'
-
local
:
'
/src/ztp/.gitlab-ci.yml'
-
local
:
'
/src/policy/.gitlab-ci.yml'
-
local
:
'
/src/forecaster/.gitlab-ci.yml'
#
- local: '/src/webui/.gitlab-ci.yml'
-
local
:
'
/src/webui/.gitlab-ci.yml'
#- local: '/src/l3_distributedattackdetector/.gitlab-ci.yml'
#- local: '/src/l3_centralizedattackdetector/.gitlab-ci.yml'
#- local: '/src/l3_attackmitigator/.gitlab-ci.yml'
#
- local: '/src/slice/.gitlab-ci.yml'
-
local
:
'
/src/slice/.gitlab-ci.yml'
#- local: '/src/interdomain/.gitlab-ci.yml'
#
- local: '/src/pathcomp/.gitlab-ci.yml'
-
local
:
'
/src/pathcomp/.gitlab-ci.yml'
#- local: '/src/dlt/.gitlab-ci.yml'
#
- local: '/src/load_generator/.gitlab-ci.yml'
#
- local: '/src/bgpls_speaker/.gitlab-ci.yml'
-
local
:
'
/src/load_generator/.gitlab-ci.yml'
-
local
:
'
/src/bgpls_speaker/.gitlab-ci.yml'
This diff is collapsed.
Click to expand it.
src/webui/.gitlab-ci.yml
+
25
−
25
View file @
24db00d0
...
...
@@ -79,28 +79,28 @@ unit test webui:
reports
:
junit
:
src/$IMAGE_NAME/tests/${IMAGE_NAME}_report.xml
# Deployment of the service in Kubernetes Cluster
deploy webui
:
variables
:
IMAGE_NAME
:
'
webui'
# name of the microservice
IMAGE_TAG
:
'
latest'
# tag of the container image (production, development, etc)
stage
:
deploy
needs
:
-
unit test webui
# - integ_test execute
script
:
-
'
sed
-i
"s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/"
manifests/${IMAGE_NAME}service.yaml'
-
kubectl version
-
kubectl get all
-
kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
-
kubectl get all
# environment:
# name: test
# url: https://example.com
# kubernetes:
# namespace: test
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
($CI_MERGE_REQUEST_TARGET_BRANCH_NAME
==
"develop"
||
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
==
$CI_DEFAULT_BRANCH)'
when
:
manual
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"
&&
$CI_COMMIT_BRANCH
==
"develop"'
when
:
manual
#
# Deployment of the service in Kubernetes Cluster
#
deploy webui:
#
variables:
#
IMAGE_NAME: 'webui' # name of the microservice
#
IMAGE_TAG: 'latest' # tag of the container image (production, development, etc)
#
stage: deploy
#
needs:
#
- unit test webui
#
# - integ_test execute
#
script:
#
- 'sed -i "s/$IMAGE_NAME:.*/$IMAGE_NAME:$IMAGE_TAG/" manifests/${IMAGE_NAME}service.yaml'
#
- kubectl version
#
- kubectl get all
#
- kubectl apply -f "manifests/${IMAGE_NAME}service.yaml"
#
- kubectl get all
#
# environment:
#
# name: test
#
# url: https://example.com
#
# kubernetes:
#
# namespace: test
#
rules:
#
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
#
when: manual
#
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "develop"'
#
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