You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
max vs. min: mode - Specifies how many layers are exported with the cache. min on only exports layers already in the final build stage, max exports layers for all stages. Metadata is always exported for the whole build.
cache destination
registry type exports build cache to a cache manifest in the registry.
local type exports cache to a local directory on the client.
inline type writes the cache metadata into the image configuration.
- name: Build with ghauses: docker/build-push-action@v4with:
context: .push: false # a shorthand for --output=type=registry if set to trueload: true # a shorthand for --output=type=docker if set to truetags: mysql-operator:latestcache-from: type=ghacache-to: type=gha,mode=max
Summary
Docs
naive (no cache): 2m 18s
docker build + github actions cache 🙅
action-docker-layer-caching Not working
docker/build-push-action
inline (skip)
(skip) as registry covers everything that inline cache can do
registry
type=registry with github packages 🙅
not fast
https://github.com/nakamasato/mysql-operator/blob/99ba619019e4ad7cd5c6e8a81d22379a0e93c3fe/.github/workflows/e2e.yml
type=registry with
load
🙅cannot
push
andload
at the same timehttps://github.com/nakamasato/mysql-operator/blob/7530489843fe4361ee004a77de2b18d951d3894a/.github/workflows/e2e.yml
type=gha ✅
https://github.com/nakamasato/mysql-operator/blob/783575c5894dcd8de71b09eed4a98055415d1838/.github/workflows/e2e.yml
type=local ✅
https://github.com/nakamasato/mysql-operator/blob/aefb790469f3b645edba924612c743269cb2e41c/.github/workflows/e2e.yml
from docker/build-push-action#252
The text was updated successfully, but these errors were encountered: