ingress-nginx-helm/controllers/nginx/Makefile

26 lines
607 B
Makefile
Raw Normal View History

2016-02-22 00:13:08 +00:00
all: push
# 0.0 shouldn't clobber any release builds
2016-07-05 17:31:08 +00:00
TAG = 0.8.1
2016-03-28 01:12:15 +00:00
PREFIX = gcr.io/google_containers/nginx-ingress-controller
2016-02-22 00:13:08 +00:00
2016-04-06 14:46:06 +00:00
REPO_INFO=$(shell git config --get remote.origin.url)
ifndef VERSION
VERSION := git-$(shell git rev-parse --short HEAD)
endif
2016-02-22 00:13:08 +00:00
controller: controller.go clean
2016-05-31 20:32:50 +00: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 14:46:06 +00:00
-o nginx-ingress-controller
2016-02-22 00:13:08 +00:00
container: controller
docker build -t $(PREFIX):$(TAG) .
push: container
gcloud docker push $(PREFIX):$(TAG)
clean:
2016-03-28 01:12:15 +00:00
rm -f nginx-ingress-controller