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
b7aacd1d
Commit
b7aacd1d
authored
Jan 11, 2019
by
李二毛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development' into 'staging'
重命名 See merge request liermao/microservice-autodevopspipelines!88
parents
03cbe328
c03eb0c4
Pipeline
#4293
failed with stages
in 1 minute 3 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
devops/PipeLines/Functions.deploy.sh
+3
-2
No files found.
devops/PipeLines/Functions.deploy.sh
View file @
b7aacd1d
...
@@ -46,8 +46,8 @@ function CD()
...
@@ -46,8 +46,8 @@ function CD()
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.
if
[
"
${
Environment
}
"
==
"Staging"
]
;
then
if
[
"
${
Environment
}
"
==
"Staging"
]
;
then
kubectl
-n
${
n
s
}
scale deploy
${
appNameOfK8s
}
--replicas
=
0
;
kubectl
-n
${
n
amespace
}
scale deploy
${
appNameOfK8s
}
--replicas
=
0
;
kubectl
-n
${
n
s
}
scale deploy
${
appNameOfK8s
}
--replicas
=
1
;
kubectl
-n
${
n
amespace
}
scale deploy
${
appNameOfK8s
}
--replicas
=
1
;
fi
fi
echo
"Deployment[
${
Environment
}
] for
${
appName
}
:
${
version
}
has been successful."
echo
"Deployment[
${
Environment
}
] for
${
appName
}
:
${
version
}
has been successful."
}
}
\ 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