diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..fab1815 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +pipeline { + agent any + + environment { + COMPOSE_FILE = 'docker-compose.yml' + } + + stages { + stage('Checkout') { + steps { + git url: 'https://gitea.biryu2000.kr/nightbug/sukjenogi-backend.git', branch: 'main' + } + } + + stage('Build & Deploy') { + steps { + sh 'docker compose down' + sh 'docker compose up -d --build' + } + } + } + + post { + failure { + echo '❌ 배포 실패!' + } + success { + echo '✅ 배포 성공!' + } + } +} \ No newline at end of file