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
5a2c322e
Commit
5a2c322e
authored
Jan 11, 2019
by
李二毛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' into 'staging'
添加命名空间 See merge request liermao/microservice-autodevopspipelines!80
parents
80de2ea6
53bb2bc7
Pipeline
#4274
failed with stages
in 43 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
devops/PipeLines/Functions.deploy.sh
+1
-0
devops/PipeLines/Updating/004_CD.sh
+2
-1
No files found.
devops/PipeLines/Functions.deploy.sh
View file @
5a2c322e
...
@@ -35,6 +35,7 @@ function CD()
...
@@ -35,6 +35,7 @@ function CD()
declare
registryUserName
=
$2
declare
registryUserName
=
$2
declare
serviceName
=
$3
declare
serviceName
=
$3
declare
version
=
$4
declare
version
=
$4
declare
namespace
=
$5
Replace
${
serviceName
}
'.'
'-'
appName
Replace
${
serviceName
}
'.'
'-'
appName
# repository name must be lowercase
# repository name must be lowercase
...
...
devops/PipeLines/Updating/004_CD.sh
View file @
5a2c322e
...
@@ -17,6 +17,7 @@ then
...
@@ -17,6 +17,7 @@ then
echo
"Tips: No services need to be cded."
echo
"Tips: No services need to be cded."
else
else
GetVersion version
GetVersion version
GetNameSpace namespace
GetImageRegistrySettings registryHost registryUserName
GetImageRegistrySettings registryHost registryUserName
for
servicePrefix
in
`
ls
./src/Services|xargs
-d
'/'
`
for
servicePrefix
in
`
ls
./src/Services|xargs
-d
'/'
`
...
@@ -27,7 +28,7 @@ else
...
@@ -27,7 +28,7 @@ else
then
then
echo
""
echo
""
echo
"Tips:
${
serviceName
}
begin deployment to K8S!!!"
echo
"Tips:
${
serviceName
}
begin deployment to K8S!!!"
CD
${
registryHost
}
${
registryUserName
}
${
serviceName
}
${
version
}
CD
${
registryHost
}
${
registryUserName
}
${
serviceName
}
${
version
}
${
namespace
}
else
else
echo
""
echo
""
echo
"Tips:
${
serviceName
}
will not be deploymented to K8S!!!"
echo
"Tips:
${
serviceName
}
will not be deploymented to K8S!!!"
...
...
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