This commit is contained in:
Vendored
+9
-18
@@ -9,31 +9,22 @@ pipeline {
|
|||||||
some-label: some-label-value
|
some-label: some-label-value
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: buildah
|
- name: kaniko
|
||||||
image: quay.io/buildah/stable
|
image: gcr.io/kaniko-project/executor:latest
|
||||||
command:
|
args:
|
||||||
- cat
|
- "--dockerfile=Dockerfile"
|
||||||
tty: true
|
- "--context=."
|
||||||
- name: busybox
|
- "--no-push"
|
||||||
image: busybox
|
|
||||||
command:
|
|
||||||
- cat
|
|
||||||
tty: true
|
|
||||||
'''
|
'''
|
||||||
retries 2
|
retries 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Run buildah') {
|
stage('Run kaniko') {
|
||||||
steps {
|
steps {
|
||||||
container('buildah') {
|
container('kaniko') {
|
||||||
sh 'ls -lha'
|
|
||||||
sh 'buildah images'
|
|
||||||
sh 'buildah bud -t my-jenkins-casc:latest .'
|
|
||||||
sh 'buildah images'
|
|
||||||
}
|
|
||||||
container('busybox') {
|
|
||||||
sh 'ls -lha'
|
sh 'ls -lha'
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user