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 name: docker
spec: spec:
containers: containers:
- name: kaniko - name: buildah
image: gcr.io/kaniko-project/executor:debug image: buildah/buildah:latest
imagePullPolicy: Always securityContext:
command: privileged: true
- sleep volumeMounts:
args: - mountPath: "/home/jenkins/agent"
- 9999999 name: "workspace-volume"
readOnly: false
- name: dind - name: dind
image: docker:24.0.0-rc.1-dind image: docker:24.0.0-rc.1-dind
securityContext: securityContext:
@ -32,11 +33,8 @@ pipeline {
stages { stages {
stage('Build Docker image') { stage('Build Docker image') {
steps { steps {
container(name: 'kaniko', shell: '/busybox/sh') { container('buildah') {
sh '''#!/busybox/sh sh 'buildah build --format=docker -f Dockerfile -t onbuild-image .'
/kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination="andreas/rsyncd:latest"
'''
} }
} }
} }