diff --git a/steampipe-plugin-github/Makefile b/steampipe-plugin-github/Makefile index b45887a2..1a8560bb 100644 --- a/steampipe-plugin-github/Makefile +++ b/steampipe-plugin-github/Makefile @@ -1,4 +1,9 @@ STEAMPIPE_INSTALL_DIR ?= ~/.steampipe BUILD_TAGS = netgo + +build: + GOPRIVATE="github.com/opengovern" CC=/usr/bin/musl-gcc GOPRIVATE="github.com/opengovern" GOOS=linux GOARCH=amd64 go build -v -ldflags "-linkmode external -extldflags '-static' -s -w" -o ./build/steampipe-plugin-github.plugin *.go + + install: go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/github@latest/steampipe-plugin-github.plugin -tags "${BUILD_TAGS}" *.go