Jenkinsfile aktualisiert

This commit is contained in:
dresi 2025-11-05 13:55:14 +01:00
parent 7e59a858f8
commit c269039480

13
Jenkinsfile vendored
View File

@ -32,15 +32,20 @@ pipeline {
stages { stages {
stage('Build Docker image') { stage('Build Docker image') {
steps { steps {
container('kaniko') { container(name: 'kaniko', shell: '/busybox/sh') {
sh 'docker build -t andreas/rsyncd .' sh '''#!/busybox/sh
sh 'docker images'
/kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination=andreas/rsyncd:latest
'''
} }
} }
} }
stage('Tag Docker image') { stage('Tag Docker image') {
steps { steps {
sh 'ls -la' container('kaniko') {
sh 'docker images'
sh 'ls -la'
}
} }
} }
} }