-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds - `+SET_CACHE_MOUNTS_ENV`: that sets two entries in the environment with the code for the cache mounts. - `+COPY_OUTPUT`: to copy files from the the target mount cache to the image layers This new approach gives more flexibility, for example to run within a `WITH DOCKER` clause: ## Example: ```Earthfile build: ... DO rust+SET_CACHE_MOUNTS_ENV WITH DOCKER RUN --mount=$EARTHLY_RUST_CARGO_HOME_CACHE --mount=$EARTHLY_RUST_TARGET_CACHE cross build --target $TARGET --release END ``` --------- Co-authored-by: idodod <[email protected]>
- Loading branch information
Showing
2 changed files
with
93 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters