chlchzjalt
This commit is contained in:
parent
accf0ebc4b
commit
de370a581d
31
Jenkinsfile
vendored
Normal file
31
Jenkinsfile
vendored
Normal file
@ -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 '✅ 배포 성공!'
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user