Build with Kaniko
Some checks reported errors
Homelab/java-spring-microservice/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Jim Nicholson 2021-12-22 17:38:24 -08:00
parent c56e6b0349
commit bb02557dda

10
Jenkinsfile vendored
View File

@ -10,10 +10,8 @@ podTemplate(label: label, containers: [
containerTemplate( containerTemplate(
name: 'kaniko', name: 'kaniko',
image: 'gcr.io/kaniko-project/executor:latest', image: 'gcr.io/kaniko-project/executor:latest',
command: command: 'sleep',
- sleep args: '99d'
args:
- 99d
) )
]) { ]) {
node(label) { node(label) {
@ -30,7 +28,9 @@ podTemplate(label: label, containers: [
} }
} }
container('kaniko') { container('kaniko') {
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --insecure --skip-tls-verify --cache-true --destination=docker.thejimnicholson.com/servicedemo/test:latest' stage('Image') {
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --insecure --skip-tls-verify --cache-true --destination=docker.thejimnicholson.com/servicedemo/test:latest'
}
} }
} }
} }