x86_64-alpine-radarr/Jenkinsfile

38 lines
1.0 KiB
Groovy

podTemplate(yaml: """
kind: Pod
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:debug
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-alpine-radarr.git', credentialsId: 'jenkins-to-git'
container('kaniko') {
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=false --destination=harbor.ervine.dev/public/x86_64/alpine/radarr:v3.2.1.5070 --destination=harbor.ervine.dev/public/x86_64/alpine/radarr:v3.0'
}
}
stage('Notify gchat') {
hangoutsNotify message: "Radarr Movie Manager 3.2.1.5070 on Alpine has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
}
}
}