Jenkinsfile aktualisiert
This commit is contained in:
parent
7e59a858f8
commit
c269039480
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -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'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user