Skip to content

Commit

Permalink
[BE][Chore] #166 : jenkinsfile ์„ธํŒ…
Browse files Browse the repository at this point in the history
- jenkinsfile ํŒŒ์ผ ์ž‘์„ฑ
  • Loading branch information
happyhyep committed Nov 16, 2024
1 parent 20bc0b4 commit 7520a2f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
pipeline {
agent any

stages {
stage('Clone Repository') {
steps {
git branch: 'development', url: 'https://github.com/boostcampwm-2024/web28-DDara.git'
}
}

stage('Set up Environment') {
steps {
script {
sh '''
echo "DB_HOST=${DB_HOST}" > backend/.env
echo "DB_PORT=${DB_PORT}" >> backend/.env
echo "DB_USER=${DB_USER}" >> backend/.env
echo "DB_PASSWORD=${DB_PASSWORD}" >> backend/.env
echo "DB_NAME=${DB_NAME}" >> backend/.env
echo "JWT_SECRET=${JWT_SECRET}" >> backend/.env
'''
}
}
}

stage('Build and Deploy') {
steps {
script {
sh '''
docker-compose up -d --build
'''
}
}
}
}
}

0 comments on commit 7520a2f

Please sign in to comment.