1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-29 10:55:05 +00:00
kyverno/Makefile
Jim Bugwadia e91cd9341b - add Makefile
- add Dockerfile
- update install.yaml
2019-05-22 21:41:24 -07:00

24 lines
394 B
Makefile

.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