Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(#68): CD 빌드 시간 개선 #69

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

NaMinhyeok
Copy link
Member

작업 개요

  • CD 빌드 시간 단축 (기존 소요시간 10분 오버)

작업 사항

  • registry 캐시 사용
  • 단일 플랫폼 빌드
  • set-output 사용 제외

문제점

기존 구성에서 멀티플랫폼으로 빌드해서 문제였던 것 같습니다. 제가 로컬에서 확인해본다고 arm64를 추가해뒀는데 제외했어야되는데 오래걸린 로그보니 arm64 이미지 빌드할 때 시간이 오래걸렸습니다.

제거하고 배포환경인 amd64만 이미지 빌드하도록 하였습니다.

현재 빌드 속도

  • 최초 캐시용 이미지 생성 90s 소요
  • 캐시 미스시 100s 가량 소요
  • 캐시 히트시 17s 소요

참고

Github Actions 사용 시 docker build 속도 높이기

해당 내용은 ECR이지만 동일하게 클라우드레지스트리에 적용가능할 것 같아서 캐싱적용했습니다.

@NaMinhyeok NaMinhyeok linked an issue Feb 6, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Feb 6, 2025

Test Results

57 tests   56 ✅  2s ⏱️
34 suites   1 💤
34 files     0 ❌

Results for commit 4cfcd30.

Copy link
Member

@pythonstrup pythonstrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵넵 고생하셨습니다👍

Copy link
Member

@pythonstrup pythonstrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 혹시 멀티플랫폼 빌드에 대해서 설명해주실 수 있으신가요?
  • 왜 멀티플랫폼을 추가해두셨던 걸까요?

@NaMinhyeok
Copy link
Member Author

  • 혹시 멀티플랫폼 빌드에 대해서 설명해주실 수 있으신가요?
  • 왜 멀티플랫폼을 추가해두셨던 걸까요?

제가 actions 로컬에서 실행하려고 했더니 제 맥에서 실행하려면 도커 이미지를 arm64로 만들었어야해서.. 이렇게 구성했습니다.

m1 mac에서 사용하려면 arm64로 플랫폼을 이용해야 한다고 하더라구요 ! os에 따라 실행할 수 있는 이미지 플랫폼이 달라진다고 합니다.

@NaMinhyeok NaMinhyeok merged commit 2ac3fa1 into main Feb 6, 2025
3 checks passed
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.

fix: CD 빌드 시간 개선
2 participants