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
I'm building a Docker dev container in CI, which is used to run some later steps in a pre-defined environment. The Dockerfile is part of the project and changes very infrequently.
In one step, I use ScribeMD/[email protected] to cache the full Docker image. Since the workflow has run before, I get a cache hit and it prints that
In the next step, I call docker build .. Even though the Dockerfile is unchanged, the build restarts from scratch.
Is there anything else I need to do to use the cached Dockerfile? The cache key includes the hash of the Dockerfile, so it will only have a cache hit if an exact match was already built.
Thanks for your help!
The text was updated successfully, but these errors were encountered:
I'm building a Docker dev container in CI, which is used to run some later steps in a pre-defined environment. The Dockerfile is part of the project and changes very infrequently.
In one step, I use
ScribeMD/[email protected]
to cache the full Docker image. Since the workflow has run before, I get a cache hit and it prints thatIn the next step, I call
docker build .
. Even though the Dockerfile is unchanged, the build restarts from scratch.Is there anything else I need to do to use the cached Dockerfile? The cache key includes the hash of the Dockerfile, so it will only have a cache hit if an exact match was already built.
Thanks for your help!
The text was updated successfully, but these errors were encountered: