This commit is contained in:
Vendored
+9
-18
@@ -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'
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user