Files
2017-02-05 15:26:15 -02:00

21 lines
599 B
Makefile

.PHONY: default
default: build
REPO_LOCAL=localhost/haproxy-ingress
REPO_PUBLIC=quay.io/jcmoraisjr/haproxy-ingress
DOCKER_HUB=quay.io
include container.mk
GOOS=linux
GOARCH=amd64
GIT_REPO=$(shell git config --get remote.origin.url)
ROOT_PKG=github.com/jcmoraisjr/haproxy-ingress/pkg
.PHONY: build
build:
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build \
-installsuffix cgo \
-ldflags "-s -w -X $(ROOT_PKG)/version.RELEASE=$(TAG) -X $(ROOT_PKG)/version.COMMIT=$(GIT_COMMIT) -X $(ROOT_PKG)/version.REPO=$(GIT_REPO)" \
-o rootfs/haproxy-ingress-controller \
$(ROOT_PKG)/controller