x86_64-debian-nzbhydra/Jenkinsfile
2020-08-26 14:37:37 +08:00

40 lines
1.1 KiB
Groovy

podTemplate(yaml: """
kind: Pod
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:debug-539ddefcae3fd6b411a95982a830d987f4214251
imagePullPolicy: Always
command:
- /busybox/cat
tty: true
volumeMounts:
- name: jenkins-docker-cfg
mountPath: /kaniko/.docker
volumes:
- name: jenkins-docker-cfg
projected:
sources:
- secret:
name: regcred
items:
- key: .dockerconfigjson
path: config.json
"""
) {
node(POD_LABEL) {
stage('Build with Kaniko') {
git url: 'ssh://git@git.ervine.org/jonny/x86_64-debian-nzbhydra.git', credentialsId: 'jenkins-to-git'
container('kaniko') {
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=false --destination=harbor.ervine.dev/public/x86_64/debian/nzbhydra2:v2.26.0 --destination=harbor.ervine.dev/public/x86_64/debian/nzbhydra2:v2.26'
}
}
}
}
stage('Notify gchat') {
hangoutsNotify message: "NZBhydra 2.26.0 on Debian application has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
}