mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
make: cache docker builds
This commit is contained in:
parent
0d268750ac
commit
0babeee084
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -34,7 +34,11 @@ ifneq ($(workers),)
|
|||
LINT_WORKERS = --concurrency=$(workers)
|
||||
endif
|
||||
|
||||
DOCKER_TOOLS = docker run -v $$(pwd):/build loop-tools
|
||||
DOCKER_TOOLS = docker run \
|
||||
--rm \
|
||||
-v $(shell bash -c "go env GOCACHE || (mkdir -p /tmp/go-cache; echo /tmp/go-cache)"):/tmp/build/.cache \
|
||||
-v $(shell bash -c "go env GOMODCACHE || (mkdir -p /tmp/go-modcache; echo /tmp/go-modcache)"):/tmp/build/.modcache \
|
||||
-v $$(pwd):/build loop-tools
|
||||
|
||||
GREEN := "\\033[0;32m"
|
||||
NC := "\\033[0m"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue