Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
springboot-k8s-example
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
demo
springboot-k8s-example
Commits
ca0bb5a8
Commit
ca0bb5a8
authored
Jul 21, 2020
by
卢浩元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile-charts
parent
5da1074f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Jenkinsfile-charts
jenkins/Jenkinsfile-charts
+4
-4
No files found.
jenkins/Jenkinsfile-charts
View file @
ca0bb5a8
...
...
@@ -66,15 +66,15 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
}
stage
(
'docker-build'
)
{
sh
"docker build . -t ${params.REGISTRY_URL}/l
usyoe
/k8s-example:${shortGitCommit}"
sh
"docker build . -t ${params.REGISTRY_URL}/l
ibrary
/k8s-example:${shortGitCommit}"
}
stage
(
'docker-push'
)
{
sh
"docker push ${params.REGISTRY_URL}/l
usyoe
/k8s-example:${shortGitCommit}"
sh
"docker push ${params.REGISTRY_URL}/l
ibrary
/k8s-example:${shortGitCommit}"
}
stage
(
'docker-remove'
)
{
sh
"docker rmi ${params.REGISTRY_URL}/l
usyoe
/k8s-example:${shortGitCommit}"
sh
"docker rmi ${params.REGISTRY_URL}/l
ibrary
/k8s-example:${shortGitCommit}"
}
}
...
...
@@ -82,7 +82,7 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
container
(
'helm'
)
{
stage
(
'helm deploy'
)
{
sh
label:
"replace config"
,
script:
"""
sed -i s#lusyoe/k8s-example#${params.REGISTRY_URL}/l
usyoe
/k8s-example:${shortGitCommit}#g charts/values.yaml
sed -i s#lusyoe/k8s-example#${params.REGISTRY_URL}/l
ibrary
/k8s-example:${shortGitCommit}#g charts/values.yaml
"""
sh
"helm upgrade --install k8s-example charts/"
...
...
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