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
When using actions/cache, we can define the restore-keys input.
restore-keys - An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note cache-hit returns false in this case.
I wonder if Buildkit reproduces this behaviour when I use --import-cache type=gha.
For example, I am creating Docker images that will work as a cache for Elixir's dependencies, so I am using the key ${ELIXIR_VERSION}-${OTP_VERSION}-$(cat mix.lock | sha512sum). I build and push the image by using the key as a tag. If, when trying to pull the image with the given tag to use as cache, Buildkit didn't find it, then he could try something like ${ELIXIR_VERSION}-${OTP_VERSION}-* or the latest tag.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When using actions/cache, we can define the
restore-keys
input.I wonder if Buildkit reproduces this behaviour when I use
--import-cache type=gha
.For example, I am creating Docker images that will work as a cache for Elixir's dependencies, so I am using the key
${ELIXIR_VERSION}-${OTP_VERSION}-$(cat mix.lock | sha512sum)
. I build and push the image by using the key as a tag. If, when trying to pull the image with the given tag to use as cache, Buildkit didn't find it, then he could try something like${ELIXIR_VERSION}-${OTP_VERSION}-*
or thelatest
tag.Is it possible in any way?
Beta Was this translation helpful? Give feedback.
All reactions