[chore] 캐시 적용을 통한 빌드 시간 단축 #228
Merged
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.
📌 Issue Number
🪐 작업 내용
✅ PR 상세 내용
📸 스크린샷(선택)
캐시 생성

성능 테스트 (빌드 시간/워크플로우 시간)
[직전 워크 플로우] : 1m 15s / 2m 5s (https://github.com/Catch-y/Spring_BE/actions/runs/13412291053)
[전전 워크플로우] : 1m 36s / 2m 19s (https://github.com/Catch-y/Spring_BE/actions/runs/13408968902)
[캐시 적용 후-1] 45s / 1m 30s (https://github.com/Catch-y/Spring_BE/actions/runs/13413539952)
[캐시 적용 후-2] 46s / 1m 29s (https://github.com/Catch-y/Spring_BE/actions/runs/13415569299/attempts/1)
[캐시 삭제 후 실행] 56s / 1m 44s (https://github.com/Catch-y/Spring_BE/actions/runs/13415569299/attempts/3)
[캐시 적용 후-1] 35s + 52s / 2m 31s (https://github.com/Catch-y/Spring_BE/actions/runs/13414459309)
[캐시 적용 후-2] 36s + 1m 26s / 2m 59s (https://github.com/Catch-y/Spring_BE/actions/runs/13414730011)
❌ 애로 사항
-> 빌드 시간은 빨라 테스트 빌드에는 적합하지만, 도커 이미지 등을 만드는 경우에는 적합하지 않음.
=>빌드 명령어를 다시 bootJar로 바꿔 해결함.
https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
📚 Reference