ingress-nginx-helm/controllers/nginx/Makefile

26 lines
607 B
Makefile
Raw Normal View History

2016-02-21 16:13:08 -08:00
all: push
# 0.0 shouldn't clobber any release builds
2016-07-05 13:31:08 -04:00
TAG = 0.8.1
2016-03-27 22:12:15 -03:00
PREFIX = gcr.io/google_containers/nginx-ingress-controller
2016-02-21 16:13:08 -08:00
2016-04-06 11:46:06 -03:00
REPO_INFO=$(shell git config --get remote.origin.url)
ifndef VERSION
VERSION := git-$(shell git rev-parse --short HEAD)
endif
2016-02-21 16:13:08 -08:00
controller: controller.go clean
2016-05-31 16:32:50 -04:00
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags \
"-s -w -X main.version=${VERSION} -X main.gitRepo=${REPO_INFO}" \
2016-04-06 11:46:06 -03:00
-o nginx-ingress-controller
2016-02-21 16:13:08 -08:00
container: controller
docker build -t $(PREFIX):$(TAG) .
push: container
gcloud docker push $(PREFIX):$(TAG)
clean:
2016-03-27 22:12:15 -03:00
rm -f nginx-ingress-controller