From 455fc1143b03067b64bfa984a67b8497644453c7 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 7 Apr 2022 20:47:22 +0700 Subject: [PATCH] add Jenkinsfile --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..d235b1c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +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 { + image = docker.build("siwatinc/octoprint-klipper:ender3s1") + } + } + } + stage('Publish Docker Image') { + steps { + script { + docker.withRegistry("https://ghcr.io/v2") { + image.push() + } + } + } + } + } +} \ No newline at end of file