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
270c78d9
Commit
270c78d9
authored
Apr 02, 2019
by
lusyoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除构建生成的本地镜像
parent
ac7c9ab0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
Jenkinsfile
jenkins/Jenkinsfile
+5
-0
Jenkinsfile-charts
jenkins/Jenkinsfile-charts
+4
-0
No files found.
jenkins/Jenkinsfile
View file @
270c78d9
...
...
@@ -71,6 +71,11 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
stage
(
'docker-push'
)
{
sh
"docker push ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
}
stage
(
'docker-remove'
)
{
sh
"docker rmi ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
}
}
...
...
jenkins/Jenkinsfile-charts
View file @
270c78d9
...
...
@@ -72,6 +72,10 @@ podTemplate(label: label, cloud: 'kubernetes', containers: [
stage
(
'docker-push'
)
{
sh
"docker push ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
}
stage
(
'docker-remove'
)
{
sh
"docker rmi ${params.REGISTRY_URL}/lusyoe/k8s-example:${shortGitCommit}"
}
}
...
...
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