From de370a581d439e42be78f8395e563c0f2098c549 Mon Sep 17 00:00:00 2001 From: biryu2000 Date: Sun, 25 May 2025 00:49:20 +0900 Subject: [PATCH] chlchzjalt --- Jenkinsfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Jenkinsfile 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