From 1b281392f7cc1556d84b6aef9323f5e2157fadd1 Mon Sep 17 00:00:00 2001 From: Maxim Pogozhiy Date: Thu, 10 Feb 2022 17:10:34 +0700 Subject: [PATCH] add release information --- .github/.goreleaser.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/.goreleaser.yml b/.github/.goreleaser.yml index 9f6032b..2e8f9bb 100644 --- a/.github/.goreleaser.yml +++ b/.github/.goreleaser.yml @@ -7,6 +7,12 @@ release: builds: - id: sphinx-exporter binary: sphinx-exporter + ldflags: + - "-X github.com/prometheus/common/version.Version={{ .Version }}" + - "-X github.com/prometheus/common/version.BuildDate={{.Date}}" + - "-X github.com/prometheus/common/version.BuildUser=goreleaser" + - "-X github.com/prometheus/common/version.Revision={{.Commit}}" + - "-X github.com/prometheus/common/version.Branch={{.Branch}}" goos: - linux goarch: