From a69293fb51fc25d7915e40c242ea5d76cafb178b Mon Sep 17 00:00:00 2001 From: shindw Date: Tue, 3 Feb 2026 09:31:01 +0900 Subject: [PATCH] =?UTF-8?q?[api]=20=EC=A0=A0=ED=82=A8=EC=8A=A4=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=ED=85=8C=EA=B7=B8=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile.pjt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.pjt b/Jenkinsfile.pjt index 7ec1c07..69aa1cc 100644 --- a/Jenkinsfile.pjt +++ b/Jenkinsfile.pjt @@ -8,7 +8,10 @@ pipeline { environment { // ===== Registry ===== - DUMMY = "true" + REGISTRY_HOST = "registry.pjt.kr" + IMAGE_REPO = "alist/api" + IMAGE_TAG = "${BUILD_NUMBER}" + DOCKER_CRED = "docker-registry-cred" // ← Jenkins Credentials ID } stages { @@ -27,5 +30,15 @@ pipeline { ''' } } + + stage('3) image tab create') { + steps { + script { + env.SHORT_SHA = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim() + env.IMAGE_TAG = "${env.BUILD_NUMBER}-${env.SHORT_SHA}" + echo "IMAGE_TAG = ${env.IMAGE_TAG}" + } + } + } } }