Skip to content

Guides

How to use container jobs effectively

Container jobs give reproducibility but break caching.

5 min read

Container jobs give reproducibility but break caching.

Why it happens

Paths inside the container differ from the host paths the cache action sees.

How to fix it

  1. Reference container paths in cache keys, not host paths
  2. Pin the container by digest for reproducibility
  3. Weigh the image pull cost against the reproducibility benefit for short jobs

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.