[api] 젠킨스 파일 테그 이미지 생성

This commit is contained in:
2026-02-03 09:31:01 +09:00
parent b57bc4aaf4
commit a69293fb51
+14 -1
View File
@@ -8,7 +8,10 @@ pipeline {
environment { environment {
// ===== Registry ===== // ===== 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 { 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}"
}
}
}
} }
} }