Sign inSign up

gardnervickers/lein-cache-resource

By gardnervickers

•Updated over 9 years ago

lein cache resource for concourse

Image
0

1M+

gardnervickers/lein-cache-resource repository overview

⁠Leiningen Cache Resource

A Concourse.ci⁠ resource for caching Leiningen dependencies.

The approach and code is based on gradle-cache-resource⁠.

⁠Source Configuration

The resource uses the git-resource⁠ internally, so any of the git-resource parameters can be used. It is advisable to use the paths parameter to only listen to changes of the project.clj of the Leiningen project.

⁠Behavior

⁠check: Check for git repo changes

Simply forwards the control to the check script of the git-resource to check for any changes in the source repository.

It is advisable to track changes to the project.clj only, since that describes the project dependencies.

⁠in: Cache dependencies

The source repository is first cloned using the git-resource and then dependencies are cached with lein deps.

If you have multiple build profiles, you can use a (Composite Profile)[https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#composite-profiles⁠] to include all their deps. The composite profile should be called :all-deps.

⁠out: Not used

Tag summary

Content type

Image

Digest

Size

103.6 MB

Last updated

over 9 years ago

docker pull gardnervickers/lein-cache-resource