diff --git a/Jenkinsfile b/Jenkinsfile index ece360a8..f1c1fd40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -89,6 +89,12 @@ pipeline { ' -e "SPRING_PROFILES_ACTIVE=' + OPERATION_ENV + '"' + ' ' + DOCKER_IMAGE_NAME + ':latest' ) + + // Docker dangling 이미지 정리 + sshCommand remote: remote, command: ''' + docker images -f "dangling=true" -q | \ + xargs -r docker rmi + ''' } } } diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index a5dc6aba..c2309f23 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -19,7 +19,7 @@ spring: jpa: hibernate: - ddl-auto: create + ddl-auto: update show-sql: true properties: hibernate: diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index c7a9f86e..e21062b0 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -19,7 +19,7 @@ spring: jpa: hibernate: - ddl-auto: create + ddl-auto: none show-sql: true properties: hibernate: