mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
use var in Makefile
This commit is contained in:
parent
a8a485a537
commit
86b1f57fd4
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -2,10 +2,10 @@ TEST = "go test ./... -coverpkg=./... -coverprofile coverage.out -covermode=coun
|
|||
IMAGE=underscore
|
||||
|
||||
build:
|
||||
docker build -t underscore:latest .
|
||||
docker build -t $(IMAGE):latest .
|
||||
|
||||
test: build
|
||||
docker run --name underscore --rm -i -t underscore sh -c $(TEST)
|
||||
docker run --name $(IMAGE) --rm -i -t $(IMAGE) sh -c $(TEST)
|
||||
|
||||
scan:
|
||||
trivy --cache-dir .trivycache/ image --exit-code 0 --no-progress --severity CRITICAL $(IMAGE)
|
||||
|
|
|
|||
Loading…
Reference in a new issue