File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1
- deployment :
2
- env GOOS=linux GOARCH=amd64 go build .
1
+ .PHONY :
2
+
3
+ BASE_IMAGE_TAG = latest
4
+ BUILD_IMAGE_TAG = v1
5
+
6
+ all :
7
+ env GOOS=linux GOARCH=amd64 go build -ldflags=' -s -w' -buildvcs=false .
8
+
9
+ binary :
10
+ @echo " Making $@ ..."
11
+ @docker pull neuvector/build_fleet:${BUILD_IMAGE_TAG}
12
+ @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}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # This script is invoked by build container
4
+
5
+ ./unitest.sh || exit $?
6
+
7
+ echo " ==> Making binary"
8
+ make || exit $?
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ go test ./... || exit $?
You can’t perform that action at this time.
0 commit comments