Skip to content

Commit

Permalink
Merge pull request #176 from boostcampwm-2024/backend
Browse files Browse the repository at this point in the history
[BE][Chore] #166 : jenkinsfile ์„ธํŒ…
  • Loading branch information
happyhyep authored Nov 16, 2024
2 parents 76ffef4 + 7520a2f commit d6e9830
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 d6e9830

Please sign in to comment.