use var in Makefile

This commit is contained in:
Ruidy 2022-03-31 11:36:32 -04:00
parent a8a485a537
commit 86b1f57fd4

View file

@ -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)