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.
작업 개요
Access Cache Restriction
develop branch에서 실행되는 CD workflow에서 jar 캐시를 계속 못찾아서 검색해보니, github actions는 branch별로 logical boundary를 통해 캐시 isolation과 security를 제공한다고 한다.
reproducible build
우리말로는 재현가능한 빌드라고 하는데 코드가 바뀌지 않으면 완전히 똑같은 Jar 파일이 빌드되는 것이다.
이를 위해서는 timestamp, 빌드한 유저, 파일 순서 등등 영향을 줄 수 있는 것들을 제거해야하며 gradle 세팅파일에 위와 같이 작성하면된다.
ECR 캐싱
ECR에 캐싱할때는 image-manifest가 true여야한다고함.
전달 사항
Build #BBB-142: CI/CD에 캐싱 적용 #59
Build: #BBB-142 CI/CD 수정 #60
Build: #BBB-142 CD 수정 #64
Build: #BBB-142 CD 캐싱 적용 완료 #65
참고 자료
docker/build-push-action#755
[Caching dependencies to speed up workflows - GitHub Docs](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache)
https://docs.docker.com/build/cache/backends/#oci-media-types