Jenkinsfile aktualisiert
This commit is contained in:
parent
7e59a858f8
commit
c269039480
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -32,15 +32,20 @@ pipeline {
|
||||
stages {
|
||||
stage('Build Docker image') {
|
||||
steps {
|
||||
container('kaniko') {
|
||||
sh 'docker build -t andreas/rsyncd .'
|
||||
sh 'docker images'
|
||||
container(name: 'kaniko', shell: '/busybox/sh') {
|
||||
sh '''#!/busybox/sh
|
||||
|
||||
/kaniko/executor --dockerfile `pwd`/Dockerfile --context `pwd` --destination=andreas/rsyncd:latest
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Tag Docker image') {
|
||||
steps {
|
||||
sh 'ls -la'
|
||||
container('kaniko') {
|
||||
sh 'docker images'
|
||||
sh 'ls -la'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user