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

multi-stage 빌드에서 github action 캐시 사용 #171

Open
1 task
withSang opened this issue Sep 16, 2023 · 0 comments
Open
1 task

multi-stage 빌드에서 github action 캐시 사용 #171

withSang opened this issue Sep 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@withSang
Copy link
Member

withSang commented Sep 16, 2023

Summary

현재 도커 이미지가 multi-stage build 방식으로 빌드되고 있는데, 정적 파일을 서빙하는 이미지를 빌드하는 두 번째 stage에서만 github action의 캐시가 사용되고 있는 것으로 보입니다.

해결법

Docker에서 제공하는 GitHub Actions은 기본적으로 최종 이미지를 빌드하는 레이어만 캐시한다고 합니다.

Tasks

  • 첫 번째 build stage에서도 캐시 적용
@withSang withSang added the enhancement New feature or request label Sep 16, 2023
@withSang withSang changed the title Github action cache가 multi-stage 빌드 시 제대로 동작하지 않음 multi-stage 빌드에서 github action 캐시 사용 Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant