mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-11 03:31:26 +00:00
PMM-11312 --version (#92)
This commit is contained in:
parent
8140ab3e39
commit
cbde0a51c2
7
Makefile
7
Makefile
@ -8,3 +8,10 @@ DOCKER_REPO ?= prometheuscommunity
|
||||
include Makefile.common
|
||||
|
||||
DOCKER_IMAGE_NAME ?= postgres-exporter
|
||||
|
||||
GO_BUILD_LDFLAGS = -X github.com/prometheus/common/version.Version=$(shell cat VERSION) -X github.com/prometheus/common/version.Revision=$(shell git rev-parse HEAD) -X github.com/prometheus/common/version.Branch=$(shell git describe --always --contains --all) -X github.com/prometheus/common/version.BuildUser= -X github.com/prometheus/common/version.BuildDate=$(shell date +%FT%T%z) -s -w
|
||||
|
||||
export PMM_RELEASE_PATH?=.
|
||||
|
||||
release:
|
||||
go build -ldflags="$(GO_BUILD_LDFLAGS)" -o $(PMM_RELEASE_PATH)/postgres_exporter ./cmd/postgres_exporter
|
||||
|
Loading…
Reference in New Issue
Block a user