[api] 젠킨스 파일 테그 이미지 생성
This commit is contained in:
+14
-1
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user