Skip to content

Commit b105671

Browse files
committed
static link
1 parent d569171 commit b105671

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ before_deploy:
4545
EXE_NAME=kubeapps-$GOOS-$GOARCH.exe
4646
fi
4747
- cp kubeapps $EXE_NAME
48-
- strip $EXE_NAME && ./$EXE_NAME version
48+
- strip $EXE_NAME
4949
- >
5050
size $EXE_NAME || :
5151

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GO_ARCH = GOARCH="${GOARCH}"
1212
BINARY = kubeapps
1313
GO_PACKAGES = $(IMPORT_PATH)/cmd $(IMPORT_PATH)/pkg/...
1414
GO_FILES := $(shell find $(shell $(GOBIN) list -f '{{.Dir}}' $(GO_PACKAGES)) -name \*.go)
15-
GO_FLAGS = -ldflags="-w -X github.com/kubeapps/kubeapps/cmd.VERSION=${VERSION}"
15+
GO_FLAGS = -ldflags='-extldflags "-static" -w -X github.com/kubeapps/kubeapps/cmd.VERSION=${VERSION}'
1616
GO_LDFLAGS =
1717
EMBEDDED_STATIC = generated/statik/statik.go
1818
CC_ = CC="${CC}"

0 commit comments

Comments
 (0)