Skip to content

Commit

Permalink
Allow use of custom build args
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Spear <tspear@conquestcyber.com>
  • Loading branch information
tspearconquest authored and poiana committed Aug 28, 2023
1 parent f7b9edc commit 7110410
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
@@ -1,14 +1,15 @@
SHELL=/bin/bash -o pipefail

GO ?= go
BUILD_ARGS ?= build
HELM ?= helm
CHART_SOURCE_DIR ?= $(shell pwd)/../charts/falco-exporter

TEST_FLAGS ?= -v -race

.PHONY: falco-exporter
falco-exporter:
$(GO) build ./cmd/falco-exporter
$(GO) $(BUILD_ARGS) ./cmd/falco-exporter

.PHONY: deploy/k8s
deploy/k8s:
Expand All @@ -20,4 +21,4 @@ deploy/k8s:
.PHONY: test
test:
$(GO) vet ./...
$(GO) test ${TEST_FLAGS} ./...
$(GO) test ${TEST_FLAGS} ./...

0 comments on commit 7110410

Please sign in to comment.