Skip to content

fix(ci): 디스크 풀로 인한 SCP 실패 수정 - 배포 전 Docker 이미지 정리#47

Merged
seoyeoki merged 1 commit intodevelopfrom
fix/cd-disk-full
Mar 22, 2026
Merged

fix(ci): 디스크 풀로 인한 SCP 실패 수정 - 배포 전 Docker 이미지 정리#47
seoyeoki merged 1 commit intodevelopfrom
fix/cd-disk-full

Conversation

@seoyeoki
Copy link
Copy Markdown
Contributor

Summary

서버 디스크가 100% 가득 차서 SCP 파일 전송이 0byte 파일로 실패하던 문제를 수정합니다.

근본 원인: /dev/vda2 9.8G 디스크 100% 사용으로 SFTP 쓰기 실패 → tar.gz가 0byte로 생성 → gzip: unexpected end of file 압축 해제 실패 → Process exited with status 1

해결: docker pull 전에 docker image prune -af로 미사용 이미지 정리하여 디스크 공간 확보 (실측 약 2GB 확보)

변경 파일

  • .github/workflows/_deploy.yml: docker image prune -af 추가

Test Plan

  • CD 워크플로우 실행 시 SCP 단계 정상 통과 확인
  • 서버 디스크 사용량 배포 후 70~80% 수준 유지 확인

docker image prune -af로 미사용 이미지 삭제 후 pull하여
디스크 100% 풀로 인한 SCP 0byte 파일 전송 실패 방지

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 22, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 855b5b93-1863-4f40-afe4-2b17fd5e8a54

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/cd-disk-full

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@seoyeoki seoyeoki merged commit a2116cf into develop Mar 22, 2026
2 checks passed
@seoyeoki seoyeoki deleted the fix/cd-disk-full branch March 22, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant