Skip to content

Commit e5226f2

Browse files
committed
HOTFIX: 스크립트 및 도커파일 수정
1 parent 1d9386e commit e5226f2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/github-actions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
echo "${{ secrets.YML_OAUTH }}" > ./application-oauth.yml
8282
shell: bash
8383

84-
# 환경별 yml 파일 생성(5) - bucket
84+
# 환경별 yml 파일 생성(6) - bucket
8585
- name: make application-bucket.yml
8686
if: contains(github.ref, 'develop')
8787
run: |
@@ -114,9 +114,9 @@ jobs:
114114
key: ${{ secrets.PRIVATE_KEY }}
115115
script: |
116116
# 기존 컨테이너 중지 및 제거
117-
if [ "$(sudo docker ps -q -f name=xcellent-be)" ]; then
118-
sudo docker stop xcellent-be
119-
sudo docker rm xcellent-be
117+
if [ "$(sudo docker ps -q)" ]; then
118+
sudo docker stop $(sudo docker ps -q) # 실행 중인 모든 컨테이너 중지
119+
sudo docker rm $(sudo docker ps -aq) # 중지된 모든 컨테이너 삭제
120120
fi
121121
122122
sudo docker ps

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ ARG JAR_FILE=build/libs/*.jar
99
COPY ${JAR_FILE} app.jar
1010

1111
# 운영 및 개발에서 사용되는 환경 설정을 분리
12-
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=dev,jwt,oauth,mail", "/app.jar"]
12+
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=dev,jwt,oauth,mail,bucket", "/app.jar"]

0 commit comments

Comments
 (0)