Is it possible to cache a directory that is also an output? #9031
Unanswered
roaaaam
asked this question in
Help & Support
Replies: 1 comment
-
|
I don't think this would work. My guess as to what is happening under the hood is that Concourse creates two volumes:
Then when the container is made both these volumes get mounted at the same path inside your container. I also think this means the second volume to be mounted at that path is the volume that would get written to. I'm not sure if the order is deterministic or not, but based on what you've observed it sounds like it is. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I was able to try the cache a given directory that persist files between builds (or runs - as long as the name, worker, etc. do not change of course)
However when I also set the same directory as an output so that it's being used an the next task, the cache is no longer working.
Here is an example pipeline to reproduce:
When I do not have the
outputsand not the second task, I can see thexyzfile growing on each run.Is it possible to cache a directory that is meant to be outputed?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions