Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Remove the cnab base image from the CI local daemon
Browse files Browse the repository at this point in the history
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
  • Loading branch information
silvin-lubecki committed Jan 18, 2019
1 parent 9bad57b commit 6d2620c
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ pipeline {
sh 'make -f docker.Makefile vendor'
}
}
post {
always {
deleteDir()
}
}
}
stage("Binaries"){
agent {
Expand Down Expand Up @@ -73,6 +78,9 @@ pipeline {
}
post {
always {
dir('src/github.com/docker/app') {
sh 'make -f docker.Makefile clean-invocation-image'
}
deleteDir()
}
}
Expand All @@ -93,6 +101,11 @@ pipeline {
archiveArtifacts '_build/ci-cov/coverage.html'
}
}
post {
always {
deleteDir()
}
}
}
stage("Coverage (experimental)") {
agent {
Expand All @@ -104,6 +117,11 @@ pipeline {
sh 'make EXPERIMENTAL=on -f docker.Makefile coverage'
}
}
post {
always {
deleteDir()
}
}
}
stage("Gradle test") {
agent {
Expand Down Expand Up @@ -148,6 +166,9 @@ pipeline {
}
post {
always {
dir('src/github.com/docker/app') {
sh 'make -f docker.Makefile clean-invocation-image'
}
deleteDir()
}
}
Expand Down
27 changes: 26 additions & 1 deletion Jenkinsfile.baguette
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ pipeline {
}
post {
always {
dir('src/github.com/docker/app') {
sh 'make -f docker.Makefile clean-invocation-image'
}
deleteDir()
}
}
Expand All @@ -87,6 +90,11 @@ pipeline {
sh 'make -f docker.Makefile gradle-test'
}
}
post {
always {
deleteDir()
}
}
}
stage("Test Linux") {
agent {
Expand All @@ -112,6 +120,9 @@ pipeline {
}
post {
always {
dir('src/github.com/docker/app') {
sh 'make -f docker.Makefile clean-invocation-image'
}
deleteDir()
}
}
Expand Down Expand Up @@ -140,6 +151,9 @@ pipeline {
}
post {
always {
dir('src/github.com/docker/app') {
sh 'make -f docker.Makefile clean-invocation-image'
}
deleteDir()
}
}
Expand Down Expand Up @@ -168,6 +182,9 @@ pipeline {
}
post {
always {
dir('src/github.com/docker/app') {
bat 'make -f docker.Makefile clean-invocation-image'
}
deleteDir()
}
}
Expand All @@ -193,7 +210,15 @@ pipeline {
unstash "invocation-image"
sh 'make -f docker.Makefile load-invocation-image'
sh 'make -f docker.Makefile push-invocation-image'
}
}
}
post {
always {
dir('src/github.com/docker/app') {
sh 'make -f docker.Makefile clean-invocation-image'
}
deleteDir()
}
}
}
stage('Release Github binaries') {
Expand Down
3 changes: 3 additions & 0 deletions docker.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ load-invocation-image:
push-invocation-image:
docker push $(CNAB_BASE_INVOCATION_IMAGE_NAME)

clean-invocation-image:
docker rmi $(CNAB_BASE_INVOCATION_IMAGE_NAME)

help: ## this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort

Expand Down

0 comments on commit 6d2620c

Please sign in to comment.