diff --git a/Makefile b/Makefile index 8f7fef4..e38b1e9 100644 --- a/Makefile +++ b/Makefile @@ -45,12 +45,12 @@ ifeq (${GO_VERSION}, 0) $(error build requies go version 1.16.n or higher) endif CGO_ENABLED=0 GOOS=linux GOARCH=amd64 BMCLIB_DEBUG=true go build -o flasher -tags osusergo,netgo \ - -ldflags \ - "-X $(LDFLAG_LOCATION).GitCommit=$(GIT_COMMIT) \ - -X $(LDFLAG_LOCATION).GitBranch=$(GIT_BRANCH) \ - -X $(LDFLAG_LOCATION).GitSummary=$(GIT_SUMMARY) \ - -X $(LDFLAG_LOCATION).AppVersion=$(VERSION) \ - -X $(LDFLAG_LOCATION).BuildDate=$(BUILD_DATE)" + -ldflags \ + "-X ${LDFLAG_LOCATION}.GitCommit=${GIT_COMMIT} \ + -X ${LDFLAG_LOCATION}.GitBranch=${GIT_BRANCH} \ + -X ${LDFLAG_LOCATION}.GitSummary=${GIT_SUMMARY} \ + -X ${LDFLAG_LOCATION}.AppVersion=${VERSION} \ + -X ${LDFLAG_LOCATION}.BuildDate=${BUILD_DATE}" ## build docker image and tag as ghcr.io/metal-toolbox/flasher:latest build-image: build-linux