Replies: 3 comments
-
In your example, changing the If instead you meant to write.
then only the commands that use the value of the |
Beta Was this translation helpful? Give feedback.
-
So what are the caching rules for stages? If I have something like this, under what conditions would the cache for Apart from the value of the
I'm not sure if I said this well enough before, so I will repeat it.
|
Beta Was this translation helpful? Give feedback.
-
Updates to If you want to make changes to |
Beta Was this translation helpful? Give feedback.
-
In relation to #2618
How does caching work for stages in a multi-stage build?
If I have a Dockerfile similar to this one and I change the value of ARG how does that affect the caching of the stages?
The contents of
base-image-variant1
will vary based on the value of${variant}
and will also cause the contents ofbase-image-variant1-sub-image-1
andbase-image-variant1-sub-image-2
to change as well.Does changing the value of a global argument completely invalidate any cache for the stages? Does the value of any global arguments get included as part of the cache so that all stages are cached uniquely between builds based on the values of any global arguments?
Beta Was this translation helpful? Give feedback.
All reactions