Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
export OAUTH_CLIENT_ID=${{ secrets.OAUTH_CLIENT_ID }}
export OAUTH_CLIENT_SECRET=${{ secrets.OAUTH_CLIENT_SECRET }}
export SLACK_WEBHOOK_URL=${{ secrets.SLACK_WEBHOOK_URL }}
export DOCKER_CONTAINER_PORT_MAP=8080:8080
export APP_DATA_PATH=/mnt/data/LegalDongCode_List.txt:/app/data/LegalDongCode_List.txt

# 기존 컨테이너 중지 및 삭제 (오류 발생 시 무시하도록 '|| true' 추가)
Expand All @@ -78,7 +77,7 @@ jobs:
sudo docker pull $DOCKER_REPOSITORY:$DOCKER_TAG

echo "Running new Docker container..."
sudo docker run -d -p $DOCKER_CONTAINER_PORT_MAP --net=host --name springboot \
sudo docker run -d --net=host --name springboot \
-v $APP_DATA_PATH \
-e TZ=Asia/Seoul \
-e SPRING_PROFILES_ACTIVE=$SPRING_PROFILES_ACTIVE \
Expand All @@ -93,4 +92,4 @@ jobs:
echo "Pruning old Docker images..."
sudo docker image prune -f

echo "Deployment to Production completed."
echo "Deployment to Production completed."
5 changes: 2 additions & 3 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
export OAUTH_CLIENT_ID=${{ secrets.OAUTH_CLIENT_ID }}
export OAUTH_CLIENT_SECRET=${{ secrets.OAUTH_CLIENT_SECRET }}
export SLACK_WEBHOOK_URL=${{ secrets.SLACK_WEBHOOK_URL }}
export DOCKER_CONTAINER_PORT_MAP=8081:8080 # 기존 워크플로의 포트 매핑
export APP_DATA_PATH=/mnt/data/LegalDongCode_List.txt:/app/data/LegalDongCode_List.txt # 데이터 볼륨 경로 (법정동코드 파일)

# 기존 컨테이너 중지 및 삭제 (오류 발생 시 무시하도록 '|| true' 추가)
Expand All @@ -78,7 +77,7 @@ jobs:
sudo docker pull $DOCKER_REPOSITORY:$DOCKER_TAG

echo "Running new Docker container..."
sudo docker run -d -p DOCKER_CONTAINER_PORT_MAP --net=host --name springboot \
sudo docker run -d --net=host --name springboot \
-v $APP_DATA_PATH \
-e TZ=Asia/Seoul \
-e SPRING_PROFILES_ACTIVE=$SPRING_PROFILES_ACTIVE \
Expand All @@ -93,4 +92,4 @@ jobs:
echo "Pruning old Docker images..."
sudo docker image prune -f

echo "Deployemnt to Staging completed."
echo "Deployemnt to Staging completed."