From bb02557dda949c992f0818ce61c0fb03d72220e7 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Wed, 22 Dec 2021 17:38:24 -0800 Subject: [PATCH] Build with Kaniko --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3362a27..1ce9ae2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,10 +10,8 @@ podTemplate(label: label, containers: [ containerTemplate( name: 'kaniko', image: 'gcr.io/kaniko-project/executor:latest', - command: - - sleep - args: - - 99d + command: 'sleep', + args: '99d' ) ]) { node(label) { @@ -30,7 +28,9 @@ podTemplate(label: label, containers: [ } } 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' + } } } }