diff --git a/.travis.yml b/.travis.yml index 6afa7077897..b4305004189 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,7 @@ before_deploy: EXE_NAME=kubeapps-$GOOS-$GOARCH.exe fi - cp kubeapps $EXE_NAME - - strip $EXE_NAME && ./$EXE_NAME version + - strip $EXE_NAME - > size $EXE_NAME || : diff --git a/Makefile b/Makefile index 2407bb2af8f..1b7075badd0 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ GO_ARCH = GOARCH="${GOARCH}" BINARY = kubeapps GO_PACKAGES = $(IMPORT_PATH)/cmd $(IMPORT_PATH)/pkg/... GO_FILES := $(shell find $(shell $(GOBIN) list -f '{{.Dir}}' $(GO_PACKAGES)) -name \*.go) -GO_FLAGS = -ldflags="-w -X github.com/kubeapps/kubeapps/cmd.VERSION=${VERSION}" +GO_FLAGS = -ldflags='-extldflags "-static" -w -X github.com/kubeapps/kubeapps/cmd.VERSION=${VERSION}' GO_LDFLAGS = EMBEDDED_STATIC = generated/statik/statik.go CC_ = CC="${CC}"