Disable docker cache

This commit is contained in:
Jonathan Ervine 2020-11-20 17:36:45 +08:00
parent e4872df2a3
commit f1b1445b7f

2
Jenkinsfile vendored
View File

@ -27,7 +27,7 @@ spec:
stage('Build with Kaniko') {
git branch: "dev", url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-hockey.git', credentialsId: 'jenkins-to-git'
container('kaniko') {
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:v3.12.1 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:v3.12 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:0.1'
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=false --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:v3.12.1 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:v3.12 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:0.1'
}
}
stage('Notify gchat') {