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
9579dfbb
Commit
9579dfbb
authored
Jan 10, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化管道
parent
3ccf3022
Pipeline
#4226
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
32 deletions
+13
-32
.gitlab-ci.yml
+13
-32
No files found.
.gitlab-ci.yml
View file @
9579dfbb
...
...
@@ -4,6 +4,7 @@ stages:
-
release-major
# Updating
-
analysing-git-changes
-
synchronizing-config
build_job
:
stage
:
build
...
...
@@ -15,20 +16,8 @@ build_job:
staging-major_job
:
stage
:
release-major
script
:
# global variable
-
export Environment='Staging'
# 001 Continuous integration image to registry.
-
bash ./devops/PipeLines/Creation/001_CI.sh
# 002 Create config information to k8s's configmap.
-
bash ./devops/PipeLines/Creation/002_CreateConfig.sh
# 003 Release major to k8s's cluster.
-
bash ./devops/PipeLines/Creation/003_ReleaseMajor.sh
# 004 Create gateway route.
-
bash ./devops/PipeLines/Creation/Gateways/Kong/004_CreateGatewayRoute.sh
-
bash ./devops/PipeLines/Creation/Creation_Pipeline.sh
only
:
-
rel/major
tags
:
...
...
@@ -37,20 +26,8 @@ staging-major_job:
prod-major_job
:
stage
:
release-major
script
:
# global variable
-
export Environment='Production'
# 001 Continuous integration image to registry.
-
bash ./devops/PipeLines/Creation/001_CI.sh
# 002 Create config information to k8s's configmap.
-
bash ./devops/PipeLines/Creation/002_CreateConfig.sh
# 003 Release major to k8s's cluster.
-
bash ./devops/PipeLines/Creation/003_ReleaseMajor.sh
# 004 Create gateway route.
-
bash ./devops/PipeLines/Creation/Gateways/Kong/004_CreateGatewayRoute.sh
-
bash ./devops/PipeLines/Creation/Creation_Pipeline.sh
only
:
-
rel/major
tags
:
...
...
@@ -59,14 +36,18 @@ prod-major_job:
staging-analysing-git-changes_job
:
stage
:
analysing-git-changes
script
:
# global variable
-
export Environment='Staging'
# 001 Analysing git changes.
-
bash +x ./devops/PipeLines/Updating/001_AnalysingGitChanges.sh
-
bash ./devops/PipeLines/Updating/001_AnalysingGitChanges.sh
only
:
-
staging
tags
:
-
staging
# 002 Synchronize config information to k8s's configmap.
-
bash +x ./devops/PipeLines/Updating/002_SyncConfig.sh
staging-analysing-git-changes_job
:
stage
:
synchronizing-config
script
:
-
export Environment='Staging'
-
bash ./devops/PipeLines/Updating/002_SyncConfig.sh
only
:
-
staging
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