fix: CI 배포 시 컨테이너 stop/rm 후 재생성
All checks were successful
Server CI/CD / deploy (push) Successful in 1m28s

force-recreate만으로는 크래시 루프 상태에서 교체가 안 되는 문제 해결.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 01:25:09 +09:00
parent 9738f1a83c
commit 3d0c9e5670

View File

@@ -25,5 +25,7 @@ jobs:
git clone https://github.com/tolelom/tolchain.git tolchain git clone https://github.com/tolelom/tolchain.git tolchain
docker build --no-cache -t a301-server:latest -f a301_server/Dockerfile . docker build --no-cache -t a301-server:latest -f a301_server/Dockerfile .
cd ~/server cd ~/server
docker compose up -d --force-recreate a301-server docker compose stop a301-server
docker compose rm -f a301-server
docker compose up -d a301-server
rm -rf /tmp/a301-build rm -rf /tmp/a301-build