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
6537b6fe
Commit
6537b6fe
authored
Jan 11, 2019
by
李二毛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' into 'staging'
添加注释 See merge request liermao/microservice-autodevopspipelines!85
parents
009551bc
0f057ee2
Pipeline
#4285
failed with stages
in 39 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
devops/PipeLines/Functions.deploy.sh
+3
-3
No files found.
devops/PipeLines/Functions.deploy.sh
View file @
6537b6fe
...
@@ -35,14 +35,14 @@ function CD()
...
@@ -35,14 +35,14 @@ function CD()
declare
registryUserName
=
$2
declare
registryUserName
=
$2
declare
serviceName
=
$3
declare
serviceName
=
$3
declare
version
=
$4
declare
version
=
$4
declare
n
s
=
$5
declare
n
amespace
=
$5
Replace
${
serviceName
}
'.'
'-'
appName
Replace
${
serviceName
}
'.'
'-'
appName
# 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
}
"
kubectl
-n
${
n
s
}
set
image deployments/
${
appNameOfK8s
}
"
${
appNameOfK8s
}
=
${
imagefullname
}
"
;
kubectl
-n
${
n
amespace
}
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.
if
[
"
${
Environment
}
"
==
"Staging"
]
;
then
if
[
"
${
Environment
}
"
==
"Staging"
]
;
then
kubectl
-n
${
ns
}
scale deploy
${
appNameOfK8s
}
--replicas
=
0
;
kubectl
-n
${
ns
}
scale deploy
${
appNameOfK8s
}
--replicas
=
0
;
...
...
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