1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/Makefile

25 lines
394 B
Makefile
Raw Normal View History

.DEFAULT_GOAL: build
PACKAGE ?=github.com/nirmata/kyverno
MAIN ?=$(PACKAGE)
LD_FLAGS ="-s -w"
REPO=nirmata/kyverno
TAG=0.1
build:
GOOS=linux go build -ldflags=$(LD_FLAGS) $(MAIN)
local:
go build -ldflags=$(LD_FLAGS) $(MAIN)
image:
docker build -t $(REPO):$(TAG) .
docker tag $(REPO):$(TAG) $(REPO):latest
push:
docker push $(REPO):$(TAG)
docker push $(REPO):latest
clean:
go clean