mirror of
https://github.com/containers/podman.git
synced 2026-02-05 06:45:31 +01:00
Add cache volumes for validatepr builds
This speeds up the build a lot (10x), the second time. Also add --init, so that it is possible to cancel it. Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
This commit is contained in:
6
Makefile
6
Makefile
@@ -332,8 +332,12 @@ validate: validate-source validate-binaries
|
||||
# image in the future.
|
||||
.PHONY: validatepr
|
||||
validatepr: ## Go Format and lint, which all code changes must pass
|
||||
$(PODMANCMD) run --rm \
|
||||
$(PODMANCMD) run --rm --init --tmpfs /tmp \
|
||||
-v $(CURDIR):/go/src/github.com/containers/podman \
|
||||
-v validatepr-gocache:/root/.cache/go-build \
|
||||
-v validatepr-gomodcache:/root/go/pkg/mod \
|
||||
-v validatepr-lintcache:/root/.cache/golangci-lint \
|
||||
-v validatepr-precommitcache:/root/.cache/pre-commit \
|
||||
--security-opt label=disable \
|
||||
--network=host \
|
||||
-it \
|
||||
|
||||
Reference in New Issue
Block a user