Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ ARCH := $(shell uname -p)
all: test build copy_scan gen_license

build:
go build -ldflags='-s -w' -buildvcs=false -o scanner ./cmd/scanner
go build -ldflags='-s -w' -buildvcs=false -o sigstore-interface ./cmd/sigstore-interface
go build -ldflags='-s -w' -o scanner ./cmd/scanner
go build -ldflags='-s -w' -o sigstore-interface ./cmd/sigstore-interface
make -C task/
make -C monitor/

Expand Down
4 changes: 2 additions & 2 deletions cmd/sigstore-interface/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ BASE_IMAGE_TAG = latest
BUILD_IMAGE_TAG = v2

all:
go build -ldflags='-s -w' -buildvcs=false .
go build -ldflags='-s -w' .

binary:
@echo "Making $@ ..."
@docker pull neuvector/build_fleet:${BUILD_IMAGE_TAG}
@docker run --rm -ia STDOUT --name build --net=none -v $(CURDIR):/go/src/github.com/neuvector/sigstore-interface -w /go/src/github.com/neuvector/sigstore-interface --entrypoint ./make_bin.sh neuvector/build_fleet:${BUILD_IMAGE_TAG}

test:
go build -ldflags='-s -w' -buildvcs=false . && bash ./integration-test.sh
go build -ldflags='-s -w' . && bash ./integration-test.sh
1 change: 1 addition & 0 deletions package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ COPY detectors/ /src/detectors
COPY monitor/ /src/monitor
COPY task/ /src/task
COPY vendor/ /src/vendor
COPY .git /src/.git
COPY Makefile go.mod go.sum genlic.sh /src/

WORKDIR /src
Expand Down
2 changes: 1 addition & 1 deletion task/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
all:
go build -ldflags='-s -w' -buildvcs=false -o scannerTask
go build -ldflags='-s -w' -o scannerTask