Spaces:
Paused
Paused
File size: 911 Bytes
82aaa1f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
podTemplate(containers: [
containerTemplate(name: 'kaniko', image: 'gcr.io/kaniko-project/executor:v1.13.0-debug', command: 'cat', ttyEnabled: true,
resourceRequestCpu: '500m', resourceRequestMemory: '24Gi', resourceLimitMemory: '24Gi')
]) {
node(POD_LABEL) {
stage('checkout') {
checkout scm
}
stage('kaniko build+publish') {
container('kaniko'){
withCredentials([file(credentialsId: 'docker_auth', variable: 'dockerauth')]) {
sh "ln -s \$dockerauth /kaniko/.docker/config.json"
sh """/kaniko/executor --dockerfile `pwd`/Dockerfile \
--context `pwd` \
--destination docker.qualityminds.de/rd/ai-christmas:latest
"""
}
}
}
}
}
|