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
5603b82a
Commit
5603b82a
authored
Jan 11, 2019
by
据说甜蜜呢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加脚本
parent
0f057ee2
Pipeline
#4288
passed with stage
in 15 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 @
5603b82a
...
@@ -41,6 +41,7 @@ function CD()
...
@@ -41,6 +41,7 @@ function CD()
# repository name must be lowercase
# repository name must be lowercase
ToLower
"
${
registryHost
}
/
${
registryUserName
}
/
${
serviceName
}
:
${
version
}
"
imagefullname
ToLower
"
${
registryHost
}
/
${
registryUserName
}
/
${
serviceName
}
:
${
version
}
"
imagefullname
ToLower
${
appName
}
appNameOfK8s
ToLower
${
appName
}
appNameOfK8s
echo
"Tips: namespace:
${
namespace
}
, appNameOfK8s:
${
appNameOfK8s
}
, imagefullname:
${
imagefullname
}
"
echo
"Tips: namespace:
${
namespace
}
, appNameOfK8s:
${
appNameOfK8s
}
, imagefullname:
${
imagefullname
}
"
kubectl
-n
${
namespace
}
set
image deployments/
${
appNameOfK8s
}
"
${
appNameOfK8s
}
=
${
imagefullname
}
"
;
kubectl
-n
${
namespace
}
set
image deployments/
${
appNameOfK8s
}
"
${
appNameOfK8s
}
=
${
imagefullname
}
"
;
# [compatible]Staging environment does not need to change version number.
# [compatible]Staging environment does not need to change version number.
...
...
devops/PipeLines/Updating/004_CD.sh
View file @
5603b82a
...
@@ -18,7 +18,8 @@ then
...
@@ -18,7 +18,8 @@ then
else
else
GetVersion version
GetVersion version
GetNameSpace namespace
GetNameSpace namespace
GetImageRegistrySettings registryHost registryUserName
GetRegistryHost registryHost
GetImageUserName registryUserName
for
servicePrefix
in
`
ls
./src/Services|xargs
-d
'/'
`
for
servicePrefix
in
`
ls
./src/Services|xargs
-d
'/'
`
do
do
...
...
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