Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
microservice-autodevopspipelines
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李春生
microservice-autodevopspipelines
Commits
c012d8f5
Commit
c012d8f5
authored
Jan 08, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改staging-major_job
parent
d6a992d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
.gitlab-ci.yml
+16
-20
No files found.
.gitlab-ci.yml
View file @
c012d8f5
stages
:
stages
:
-
build
-
build
-
staging-release-major
-
staging-release-major
-
prod-release-major
build_job
:
build_job
:
stage
:
build
stage
:
build
...
@@ -12,27 +11,24 @@ build_job:
...
@@ -12,27 +11,24 @@ build_job:
tags
:
tags
:
-
local
-
local
major-staging
_job
:
staging-major
_job
:
stage
:
major-staging
stage
:
staging-release-major
script
:
script
:
# Continuous integration
-
export RegistryHost='registry.geekbuying.com:8100'
-
export RegistryHost='registry.geekbuying.com:8100'
-
chmod +x ./build/CI.light.sh
-
export Environment='Staging'
-
./build/CI.light.sh
-
export K8sApiServer='https://172.24.83.222:6443'
# Continuous delivery
# create config information
# 001 Continuous integration image to registry.
-
export isCreateNamespace='1'
-
bash ./devops/PipeLines/CI.sh
-
export environment='Staging'
-
export baseUrl='https://172.24.83.222:6443'
# 002 Create config information to k8s's configmap.
-
export accessToken=''
-
bash ./devops/PipeLines/Creation/CreateConfig.sh
-
chmod +x ./build/CreateConfigMaps.sh
-
./build/CreateConfigMaps.sh
# 003 Release major to k8s's cluster.
# create application component
-
bash ./devops/PipeLines/Creation/ReleaseMajor.sh
-
export kongServiceBaseUrl='http://127.0.0.1:81/services'
-
export kongRouteBaseUrl='http://127.0.0.1:81/routes'
# 004 Create gateway route.
-
export kongRouteDomain='staging-api.geekbuy.cn'
-
bash ./devops/PipeLines/Creation/Gateways/Kong/CreateGatewayRoute.sh
-
chmod +x ./build/GrayRelease.sh
-
./build/GrayRelease.sh
only
:
only
:
-
rel/major
-
rel/major
tags
:
tags
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment