Jenkinsfile aktualisiert
This commit is contained in:
parent
dd464c27a8
commit
9f994cc5ca
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -10,13 +10,14 @@ pipeline {
|
||||
name: docker
|
||||
spec:
|
||||
containers:
|
||||
- name: kaniko
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
- sleep
|
||||
args:
|
||||
- 9999999
|
||||
- name: buildah
|
||||
image: buildah/buildah:latest
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- mountPath: "/home/jenkins/agent"
|
||||
name: "workspace-volume"
|
||||
readOnly: false
|
||||
- name: dind
|
||||
image: docker:24.0.0-rc.1-dind
|
||||
securityContext:
|
||||
@ -32,11 +33,8 @@ pipeline {
|
||||
stages {
|
||||
stage('Build Docker image') {
|
||||
steps {
|
||||
container(name: 'kaniko', shell: '/busybox/sh') {
|
||||
sh '''#!/busybox/sh
|
||||
|
||||
/kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination="andreas/rsyncd:latest"
|
||||
'''
|
||||
container('buildah') {
|
||||
sh 'buildah build --format=docker -f Dockerfile -t onbuild-image .'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user