#Is there a (better!) way to cache only one line of a .WithExec() container?

1 messages · Page 1 of 1 (latest)

opaque sleet
#

I am checking out a repo and it was cached as the repo URL remains the same between runs.
I am using this as a previous step:
WithEnvVariable("CACHE_BUSTER", fmt.Sprintf("%d", time.Now().Unix())).

To make sure the following steps are not cached. Is there a better way?

hybrid fossil
#

@past siren are you trying to make sure the latest git commit for a given git branch or tag is always pulled?

hybrid fossil
#

oh no sorry!!

hybrid fossil
tardy berry
tardy berry
hybrid fossil
#

yeah normally if you use core git API, you don't need cache buster. But I'm thinking maybe they execute git in a container?

tardy berry