Osterkarten / Jenkinsfile
johann-foerster's picture
build-deploy
82aaa1f
raw
history blame
911 Bytes
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
"""
}
}
}
}
}