Skip to content

Commit

Permalink
HOTFIX: 스크립트 및 도커파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ehs208 committed Oct 20, 2024
1 parent 1d9386e commit e5226f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
echo "${{ secrets.YML_OAUTH }}" > ./application-oauth.yml
shell: bash

# 환경별 yml 파일 생성(5) - bucket
# 환경별 yml 파일 생성(6) - bucket
- name: make application-bucket.yml
if: contains(github.ref, 'develop')
run: |
Expand Down Expand Up @@ -114,9 +114,9 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
script: |
# 기존 컨테이너 중지 및 제거
if [ "$(sudo docker ps -q -f name=xcellent-be)" ]; then
sudo docker stop xcellent-be
sudo docker rm xcellent-be
if [ "$(sudo docker ps -q)" ]; then
sudo docker stop $(sudo docker ps -q) # 실행 중인 모든 컨테이너 중지
sudo docker rm $(sudo docker ps -aq) # 중지된 모든 컨테이너 삭제
fi
sudo docker ps
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar

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

0 comments on commit e5226f2

Please sign in to comment.