배포 스크립트가 서버 compose 설정을 덮어쓰지 않게 수정

서버의 docker-compose.yaml은 보안 패치한 nginx 이미지를 쓰고 있어서
저장소 사본(nginx:stable-alpine)으로 덮어쓰면 다음 재시작 때 옛 이미지로 돌아갑니다.
nginx-static.conf만 복사하고 compose는 다를 때 알려 주기만 합니다.
This commit is contained in:
syskiller committed 2026-11-24 07:18:13 +09:00
1 parent 0655d3b599
commit e946d6e614
1 file changed
+3 -1
+3 -1
View File
@@ -22,7 +22,9 @@ cp source/third-party/fusion-pixel-licenses/* site/fusion-pixel-licenses/
cp source/LICENSE site/LICENSE.txt
cp source/NOTICE.md site/NOTICE.txt
cp source/third-party/Galmuri-OFL.txt site/Galmuri-OFL.txt
cp source/docker-compose.yaml source/nginx-static.conf .
cp source/nginx-static.conf .
# docker-compose.yaml은 서버 쪽 사본을 그대로 쓴다(보안 패치한 nginx 이미지를 가리킴). 저장소 사본으로 덮어쓰지 않는다.
cmp -s source/docker-compose.yaml docker-compose.yaml || echo "참고: 저장소 docker-compose.yaml과 서버 사본이 다릅니다. 서버 사본을 유지합니다."
printf 'ok\n' > site/health.txt
sha256sum site/index.html > deploy-sha256.txt
chmod -R a+rX site