[📝] Jenkinsfile 수정
This commit is contained in:
parent
9f5a2a0d31
commit
0920344832
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -1,14 +1,11 @@
|
|||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
DOCKER_RELEASE_CONTAINER = 'acamate-back-build-release'
|
||||
DOCKER_DEBUG_CONTAINER = 'acamate-back-build-debug'
|
||||
|
||||
DOCKER_RELEASE_RUN_CONTAINER = 'acamate-run-release'
|
||||
DOCKER_DEBUG_RUN_CONTAINER = 'acamate-run-debug'
|
||||
|
||||
DOCKER_RELEASE_CONTAINER = 'acamate-front-build-release'
|
||||
DOCKER_DEBUG_CONTAINER = 'acamate-front-build-debug'
|
||||
APP_VOLUME = '/src'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Clone Repository') {
|
||||
steps {
|
||||
|
@ -23,10 +20,10 @@ pipeline {
|
|||
sh "docker rm temp-container"
|
||||
if (env.GIT_BRANCH == 'main') {
|
||||
// main 브랜치용 작업
|
||||
sh "docker start ${DOCKER_RELEASE_RUN_CONTAINER}"
|
||||
sh "docker start ${DOCKER_RELEASE_CONTAINER}"
|
||||
} else if (env.GIT_BRANCH == 'debug') {
|
||||
// debug 브랜치용 작업
|
||||
sh "docker start ${DOCKER_DEBUG_RUN_CONTAINER}"
|
||||
sh "docker start ${DOCKER_DEBUG_CONTAINER}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user