2022-04-07 13:47:22 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Clone') {
|
|
|
|
steps {
|
|
|
|
git branch: 'ender3s1', url: 'https://git.siwatsystem.com/satitchula-printfarm/octoprint-klipper-docker'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build Docker Image') {
|
|
|
|
steps {
|
|
|
|
script {
|
2023-01-02 17:37:15 +00:00
|
|
|
image = docker.build("siwatinc/octoprint-klipper:ender3s1","./ --no-cache")
|
2022-04-07 13:47:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Publish Docker Image') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
docker.withRegistry("https://ghcr.io/v2") {
|
|
|
|
image.push()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|