fix dock and version
This commit is contained in:
parent
ad91081e86
commit
3cf7d89363
8
Makefile
8
Makefile
|
|
@ -46,10 +46,10 @@ endef
|
||||||
PLUGINS:=$(patsubst plugins/%/main.go,%,$(wildcard plugins/*/main.go))
|
PLUGINS:=$(patsubst plugins/%/main.go,%,$(wildcard plugins/*/main.go))
|
||||||
|
|
||||||
VERSION_LDFLAGS:= \
|
VERSION_LDFLAGS:= \
|
||||||
-X $(IMPORT_PATH)/vendor/github.com/prometheus/common/version.Branch=$(TRAVIS_BRANCH) \
|
-X github.com/prometheus/common/version.Branch=$(TRAVIS_BRANCH) \
|
||||||
-X $(IMPORT_PATH)/vendor/github.com/prometheus/common/version.BuildDate=$(DATE) \
|
-X github.com/prometheus/common/version.BuildDate=$(DATE) \
|
||||||
-X $(IMPORT_PATH)/vendor/github.com/prometheus/common/version.Revision=$(COMMIT) \
|
-X github.com/prometheus/common/version.Revision=$(COMMIT) \
|
||||||
-X $(IMPORT_PATH)/vendor/github.com/prometheus/common/version.Version=$(VERSION)-$(ITERATION)
|
-X github.com/prometheus/common/version.Version=$(VERSION)-$(ITERATION)
|
||||||
|
|
||||||
# Makefile targets follow.
|
# Makefile targets follow.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ RUN apt-get update \
|
||||||
COPY . $GOPATH/src/${IMPORT_PATH}
|
COPY . $GOPATH/src/${IMPORT_PATH}
|
||||||
WORKDIR $GOPATH/src/${IMPORT_PATH}
|
WORKDIR $GOPATH/src/${IMPORT_PATH}
|
||||||
|
|
||||||
RUN dep ensure --vendor-only \
|
RUN go mod vendor \
|
||||||
&& CGO_ENABLED=0 make ${BINARY}.${ARCH}.${OS}
|
&& CGO_ENABLED=0 make ${BINARY}.${ARCH}.${OS}
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue