forked from deepfence/SecretScanner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (16 loc) · 622 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (16 loc) · 622 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export IMAGE_REPOSITORY?=quay.io/deepfenceio
export DF_IMG_TAG?=2.5.7
all: SecretScanner
bootstrap:
$(PWD)/bootstrap.sh
clean:
-rm ./SecretScanner
vendor: go.mod
go mod tidy -v
go mod vendor
SecretScanner: vendor $(PWD)/**/*.go $(PWD)/agent-plugins-grpc/**/*.go
CGO_LDFLAGS="-ljansson -lcrypto -lmagic" PKG_CONFIG_PATH=/usr/local/yara/lib/pkgconfig:$(PKG_CONFIG_PATH) go build -buildmode=pie -ldflags="-s -w -extldflags=-static -X 'main.version=$(DF_IMG_TAG)'" -buildvcs=false -v .
.PHONY: clean bootstrap
.PHONY: docker
docker:
docker build -t $(IMAGE_REPOSITORY)/deepfence_secret_scanner_ce:$(DF_IMG_TAG) .