ci:Jenkinsfile 2-branch 전략으로 전환 (stage 브랜치 제거, main에서 Stage→승인→Production)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 17:41:22 +09:00
parent 4f4fa2dd04
commit 8096514e93

24
Jenkinsfile vendored
View File

@@ -18,16 +18,11 @@ pipeline {
sshagent(credentials: ['deploy-ssh-key']) {
sh """
ssh ${DEPLOY_USER}@211.117.60.189 'mkdir -p /home/webservice/api-stage/releases/${RELEASE_ID}'
rsync -az --delete \
--exclude='.git' \
--exclude='.env' \
--exclude='storage/app' \
--exclude='storage/logs' \
--exclude='storage/framework/sessions' \
--exclude='storage/framework/cache' \
--exclude='.git' --exclude='.env' \
--exclude='storage/app' --exclude='storage/logs' \
--exclude='storage/framework/sessions' --exclude='storage/framework/cache' \
. ${DEPLOY_USER}@211.117.60.189:/home/webservice/api-stage/releases/${RELEASE_ID}/
ssh ${DEPLOY_USER}@211.117.60.189 '
cd /home/webservice/api-stage/releases/${RELEASE_ID} &&
ln -sfn /home/webservice/api-stage/shared/.env .env &&
@@ -64,16 +59,11 @@ pipeline {
sshagent(credentials: ['deploy-ssh-key']) {
sh """
ssh ${DEPLOY_USER}@211.117.60.189 'mkdir -p /home/webservice/api/releases/${RELEASE_ID}'
rsync -az --delete \
--exclude='.git' \
--exclude='.env' \
--exclude='storage/app' \
--exclude='storage/logs' \
--exclude='storage/framework/sessions' \
--exclude='storage/framework/cache' \
--exclude='.git' --exclude='.env' \
--exclude='storage/app' --exclude='storage/logs' \
--exclude='storage/framework/sessions' --exclude='storage/framework/cache' \
. ${DEPLOY_USER}@211.117.60.189:/home/webservice/api/releases/${RELEASE_ID}/
ssh ${DEPLOY_USER}@211.117.60.189 '
cd /home/webservice/api/releases/${RELEASE_ID} &&
ln -sfn /home/webservice/api/shared/.env .env &&
@@ -115,4 +105,4 @@ pipeline {
}
}
}
}
}