What's new
-
batect now supports the concept of a cache volume. These cache volumes are designed to significantly improve the performance of builds when running on macOS or Windows, and using them has resulted in performance improvements of up to 80% in some test projects.
They are perfect for directories such as
node_modules
where persistence between task runs is required,
but easy access to their contents is not necessary.Add a cache to a container by adding an entry to
volumes
withtype: cache
, for example:containers: build-env: image: "node:13.8.0" volumes: - local: . container: /code - type: cache name: app-node-modules container: /code/node_modules working_directory: /code
The page on performance in the documentation contains more information on this feature, and an important note for using caches with
run_as_current_user
enabled.See #406 for more background on this feature, and to provide feedback. A future release will include a
./batect --clean
command to clean up all caches for a project.
Getting started
First time using batect? Take a look at the getting started guide, or the many sample projects.
How to upgrade from previous versions
If you're already using batect, run ./batect --upgrade
to upgrade automatically.