File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ GIT_TAG?= $(shell git describe --always --tags)
2
2
BIN = gosec
3
3
FMT_CMD = $(gofmt -s -l -w $(find . -type f -name '*.go' -not -path './vendor/*' ) | tee /dev/stderr )
4
4
IMAGE_REPO = docker.io
5
+ BUILDFLAGS := ''
6
+ CGO_ENABLED = 0
5
7
6
8
default :
7
9
$(MAKE ) bootstrap
@@ -27,8 +29,11 @@ clean:
27
29
release : bootstrap
28
30
@echo " Releasing the gosec binary..."
29
31
goreleaser release
32
+
33
+ build-linux :
34
+ CGO_ENABLED=$(CGO_ENABLED ) GOOS=linux GOARCH=amd64 go build -ldflags $(BUILDFLAGS ) -o $(BIN ) ./cmd/gosec/
30
35
31
- image : build
36
+ image : build-linux
32
37
@echo " Building the Docker image..."
33
38
docker build -t $(IMAGE_REPO ) /$(BIN ) :$(GIT_TAG ) .
34
39
docker tag $(IMAGE_REPO ) /$(BIN ) :$(GIT_TAG ) $(IMAGE_REPO ) /$(BIN ) :latest
You can’t perform that action at this time.
0 commit comments