젠킨스파일 수정중

This commit is contained in:
biryu2000 2025-05-25 10:56:50 +09:00
parent 77b9800ccc
commit 7ece7a3853

13
Jenkinsfile vendored
View File

@ -6,12 +6,17 @@ pipeline {
}
stages {
stage('Checkout') {
steps {
// 필요한 경우 워크스페이스 초기화
deleteDir()
git credentialsId: 'nightbug', url: 'https://gitea.biryu2000.kr/nightbug/sukjenogi-backend.git', branch: 'master'
}
}
stage('Build & Deploy') {
steps {
echo '🔄 기존 컨테이너 중지 중...'
sh 'docker compose down'
echo '🚀 새 이미지 빌드 및 컨테이너 실행 중...'
sh 'docker compose down || true' // 실패해도 계속
sh 'docker compose up -d --build'
}
}