Release 0.8
This commit is contained in:
parent
09d7b756db
commit
0bcfcef8f8
13 changed files with 29 additions and 14 deletions
|
|
@ -1,10 +1,11 @@
|
|||
all: push
|
||||
|
||||
# 0.0 shouldn't clobber any release builds
|
||||
TAG = 0.7
|
||||
TAG = 0.8
|
||||
PREFIX = gcr.io/google_containers/nginx-ingress-controller
|
||||
|
||||
REPO_INFO=$(shell git config --get remote.origin.url)
|
||||
UPX:=$(shell command -v upx 2> /dev/null)
|
||||
|
||||
ifndef VERSION
|
||||
VERSION := git-$(shell git rev-parse --short HEAD)
|
||||
|
|
@ -14,6 +15,10 @@ controller: controller.go clean
|
|||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags \
|
||||
"-s -w -X main.version=${VERSION} -X main.gitRepo=${REPO_INFO}" \
|
||||
-o nginx-ingress-controller
|
||||
ifdef UPX
|
||||
# compressing the binary reduces the size at leat a 75%
|
||||
upx nginx-ingress-controller
|
||||
endif
|
||||
|
||||
container: controller
|
||||
docker build -t $(PREFIX):$(TAG) .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue