diff --git a/Jenkinsfile b/Jenkinsfile index fb2ad8b..b141c0c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,31 +9,22 @@ pipeline { some-label: some-label-value spec: containers: - - name: buildah - image: quay.io/buildah/stable - command: - - cat - tty: true - - name: busybox - image: busybox - command: - - cat - tty: true + - name: kaniko + image: gcr.io/kaniko-project/executor:latest + args: + - "--dockerfile=Dockerfile" + - "--context=." + - "--no-push" ''' retries 2 } } stages { - stage('Run buildah') { + stage('Run kaniko') { steps { - container('buildah') { - sh 'ls -lha' - sh 'buildah images' - sh 'buildah bud -t my-jenkins-casc:latest .' - sh 'buildah images' - } - container('busybox') { + container('kaniko') { sh 'ls -lha' + } } }