Jenkinsfile aktualisiert

This commit is contained in:
dresi 2025-11-05 14:05:45 +01:00
parent dd464c27a8
commit 9f994cc5ca

22
Jenkinsfile vendored
View File

@ -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 .'
}
}
}