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
139f1134
Commit
139f1134
authored
Jan 11, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重构管道
parent
842aa4f1
Pipeline
#4317
passed with stage
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
46 deletions
+100
-46
.gitlab-ci.yml
+100
-46
No files found.
.gitlab-ci.yml
View file @
139f1134
...
@@ -18,94 +18,148 @@ build_job:
...
@@ -18,94 +18,148 @@ build_job:
tags
:
tags
:
-
build
-
build
release-major_job
:
staging_
release-major_job
:
stage
:
release-major
stage
:
release-major
script
:
script
:
# Import external functions
# Import external functions
-
chmod +x ./devops/PipeLines/Functions.core.sh
-
bash ./devops/PipeLines/Creation/Creation_Pipeline.sh
-
source ./devops/PipeLines/Functions.core.sh
-
ReleaseEnvironmentOf environment
-
export Environment=$environment
-
bash ./devops/PipeLines/Creation/Creation_Pipeline.sh
only
:
only
:
-
release/staging
-
release/staging
-
release/production
tags
:
tags
:
-
${Environment}
-
staging
analysing-git-changes_job
:
prod_release-major_job
:
stage
:
release-major
script
:
# Import external functions
-
bash ./devops/PipeLines/Creation/Creation_Pipeline.sh
only
:
-
release/production
tags
:
-
production
staging_analysing-git-changes_job
:
stage
:
analysing-git-changes
script
:
-
bash ./devops/PipeLines/Updating/001_AnalysingGitChanges.sh
only
:
-
staging
tags
:
-
staging
staging_synchronizing-config_job
:
stage
:
synchronizing-config
script
:
-
bash ./devops/PipeLines/Updating/002_SyncConfig.sh
only
:
-
staging
tags
:
-
staging
staging_ci_job
:
stage
:
ci
script
:
-
bash ./devops/PipeLines/Updating/003_CI.sh
only
:
-
staging
tags
:
-
staging
staging_cd_job
:
stage
:
cd
script
:
-
bash ./devops/PipeLines/Updating/004_CD.sh
only
:
-
staging
tags
:
-
staging
staging_is-k8s-ready_job
:
stage
:
is-k8s-ready
script
:
-
bash ./devops/PipeLines/Updating/005_IsK8sReady.sh
only
:
-
staging
tags
:
-
staging
staging_testing_job
:
stage
:
testing
script
:
-
bash ./devops/PipeLines/Updating/006_Testing.sh
only
:
-
staging
tags
:
-
staging
staging_clean-k8s_job
:
stage
:
clean-k8s
script
:
-
bash ./devops/PipeLines/Updating/007_CleanK8s.sh
only
:
-
staging
tags
:
-
staging
prod_analysing-git-changes_job
:
stage
:
analysing-git-changes
stage
:
analysing-git-changes
script
:
script
:
-
bash ./devops/PipeLines/Updating/001_AnalysingGitChanges.sh
-
bash ./devops/PipeLines/Updating/001_AnalysingGitChanges.sh
only
:
only
:
-
staging
-
master
-
production
tags
:
tags
:
-
staging
-
production
-
production
synchronizing-config_job
:
prod_
synchronizing-config_job
:
stage
:
synchronizing-config
stage
:
synchronizing-config
script
:
script
:
-
bash ./devops/PipeLines/Updating/002_SyncConfig.sh
-
bash ./devops/PipeLines/Updating/002_SyncConfig.sh
only
:
only
:
-
staging
-
master
-
production
tags
:
tags
:
-
staging
-
production
-
production
ci_job
:
prod_
ci_job
:
stage
:
ci
stage
:
ci
script
:
script
:
-
bash ./devops/PipeLines/Updating/003_CI.sh
-
bash ./devops/PipeLines/Updating/003_CI.sh
only
:
only
:
-
staging
-
master
-
production
tags
:
tags
:
-
staging
-
production
-
production
cd_job
:
prod_
cd_job
:
stage
:
cd
stage
:
cd
script
:
script
:
-
bash ./devops/PipeLines/Updating/004_CD.sh
-
bash ./devops/PipeLines/Updating/004_CD.sh
only
:
only
:
-
staging
-
master
-
production
tags
:
tags
:
-
staging
-
production
-
production
is-k8s-ready_job
:
prod_
is-k8s-ready_job
:
stage
:
is-k8s-ready
stage
:
is-k8s-ready
script
:
script
:
-
bash ./devops/PipeLines/Updating/005_IsK8sReady.sh
-
bash ./devops/PipeLines/Updating/005_IsK8sReady.sh
only
:
only
:
-
staging
-
master
-
production
tags
:
tags
:
-
staging
-
production
-
production
testing_job
:
prod_
testing_job
:
stage
:
testing
stage
:
testing
script
:
script
:
-
bash ./devops/PipeLines/Updating/006_Testing.sh
-
bash ./devops/PipeLines/Updating/006_Testing.sh
only
:
only
:
-
staging
-
master
-
production
tags
:
tags
:
-
staging
-
production
-
production
clean-k8s_job
:
prod_
clean-k8s_job
:
stage
:
clean-k8s
stage
:
clean-k8s
script
:
script
:
-
bash ./devops/PipeLines/Updating/007_CleanK8s.sh
-
bash ./devops/PipeLines/Updating/007_CleanK8s.sh
only
:
only
:
-
staging
-
master
-
production
tags
:
tags
:
-
staging
-
production
-
production
\ No newline at end of file
\ No newline at end of file
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