Commit Graph
8 Commits
Author SHA1 Message Date
Jon Johnson c1c4af0e6e Add more locking around on-disk image cache
Concurrent writes/reads to the cache might result in partially written
files, which we'd like to avoid.

On top of that, we generally don't want builds to fail if something goes
wrong with the cache, so now we just log any cache errors and do a
fallback.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
2023-11-06 12:39:19 -08:00
Jon Johnson 93d195ee35 Don't AppendDescriptor until we've written config (#1175)
I have a suspicion that this is causing a race where we modify the
cache's index.json file before we actually write out the image's config
file, so if we call RawConfigFile before we finish caching it, we'll
just fail to find that file.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
2023-11-06 12:28:13 -05:00
Jon Johnson 81c1c704e1 implement dumb cache for images (#1102)
Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
2023-07-31 15:14:32 -07:00
Jon Johnson 200db7243f Pin setup-ko to previous release (#1082) 2023-06-20 15:13:15 -04:00
Jon Johnson 6284661a61 Fix --local with KO_DOCKER_REPO (#1017) 2023-04-21 20:43:50 -04:00
Jon Johnson 6a1169b0a5 Add context to many gobuild errors (#1016) 2023-04-21 20:23:30 -04:00
Jon Johnson a42d0f2068 Don't publish tags twice (#1010) 2023-04-18 14:09:33 -04:00
Jon Johnson 657cd9466a Push images faster (#1005) 2023-04-07 13:33:24 -04:00