Skip to content

Commit

Permalink
[feat] #150 - 스프링 서버를 redis와 동일한 네트워크에서 실행되도록 구현 (#151)
Browse files Browse the repository at this point in the history
* [#150] feat(Jenkinsfile): 스프링 서버를 redis와 동일한 네트워크에서 실행되도록 구현

* [#150] refactor(prod-CI.yml): prod에서 PR시에만 빌드 되도록 수정
  • Loading branch information
hoonyworld authored Jul 19, 2024
1 parent efc2293 commit 7e6fcd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/prod-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: prod-CI
on:
pull_request:
branches: [ "main" ]
push:
branches: [ "main" ]

jobs:
prod-ci:
Expand Down
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ pipeline {
// 새로운 컨테이너 실행
sshCommand remote: remote, command: (
'docker run -d --name springboot' +
' --network beat-network' +
' -p 8080:' + INTERNAL_PORT +
' -e "SPRING_PROFILES_ACTIVE=' + OPERATION_ENV + '"' +
' ' + DOCKER_IMAGE_NAME + ':latest'
Expand Down

0 comments on commit 7e6fcd7

Please sign in to comment.