[Chore] CI/배포 Docker 이미지 빌드 캐싱 적용 - #154
Merged
Merged
Conversation
Docker 빌드 단계에 레이어 캐시가 없어 매번 의존성 재다운로드·전체 재컴파일이 발생하던 문제. docker/build-push-action + cache-from/cache-to: type=gha로 레이어를 캐싱하고, 배포 워크플로우는 CI가 같은 커밋으로 미리 써둔 캐시를 재사용하도록 함.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
체크리스트
develop)chore/#153-ci-docker-build-cache)./gradlew test또는./gradlew build를 실행했습니다. (워크플로우 YAML만 변경되어 애플리케이션 코드 빌드는 해당 없음)연관 이슈
작업 내용
ci.yml:docker build대신docker/setup-buildx-action+docker/build-push-action(push: false)로 교체하고cache-from/cache-to: type=gha를 추가했습니다.deploy.yml:docker/setup-buildx-action을 추가하고, 기존docker/build-push-action단계에cache-from/cache-to: type=gha를 추가했습니다. CI가 같은 커밋으로 미리 써둔 캐시를 재사용해 배포 시 이미지 빌드 시간을 줄이는 것이 목적입니다.변경 범위
리뷰 중점사항
cache-from/cache-to스코프가 CI와 배포 워크플로우 간에 실제로 공유되는지 (같은 저장소, 동일 기본 scope)테스트
./gradlew test./gradlew build