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

Use cache on build #9639

Merged
merged 1 commit into from
Jan 27, 2023
Merged

Use cache on build #9639

merged 1 commit into from
Jan 27, 2023

Conversation

ikuradon
Copy link
Contributor

What

Fix #9614

Additional info (optional)

docker/build-push-action#716moby/buildkit#1512 が原因でGHAではdownload cacheが効かないのでcache-fromとcache-toでレイヤを再利用できるようにしている。
ローカルではレイヤキャッシュは勝手に処理してくれるはずだし、なにか事前情報が変わったとしてもaptとpnpmのdownload cacheを再利用できるようにしている。
注意点として、BuildKitの機能を利用しているのでSUSE系のビルダーツール(Podman, Buildah)では動かないかもしれない。(kanikoは勝手に無視してくれたっぽい)

@codecov
Copy link

codecov bot commented Jan 17, 2023

Codecov Report

Merging #9639 (dcbb9ea) into develop (fe4fbaf) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #9639   +/-   ##
========================================
  Coverage    22.62%   22.62%           
========================================
  Files          731      731           
  Lines        68487    68487           
  Branches      2028     2028           
========================================
  Hits         15495    15495           
  Misses       52992    52992           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@syuilo syuilo merged commit 7af0e38 into misskey-dev:develop Jan 27, 2023
@syuilo
Copy link
Member

syuilo commented Jan 27, 2023

🙏🏻

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.

Dockerイメージのビルド時にキャッシュをガンガン活用する
2 participants