Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from carlpett/more-release-fix
Browse files Browse the repository at this point in the history
More fixes for release
  • Loading branch information
carlpett authored May 21, 2019
2 parents 9ae5614 + 4a62495 commit 076d4ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ CROSSBUILD_ARCH = 386 amd64

VERSION := $(shell git describe --tags --dirty=-dirty)
REVISION := $(shell git describe --abbrev=0 --always --match=always-commit-hash --dirty=-dirty)
BRANCH := $(or $(shell git symbolic-ref --short HEAD), release-tag)
BRANCH := $(or $(shell git symbolic-ref --short HEAD 2>/dev/null), "from-release-tag")
BUILDDATE := $(shell date --iso-8601=seconds)
BUILDUSER ?= $(USER)
BUILDHOST ?= $(HOSTNAME)
LDFLAGS = -X github.com/prometheus/common/version.Version=$(VERSION) \
-X github.com/prometheus/common/version.Revision=$(REVISION) \
-X github.com/prometheus/common/version.Branch=$(BRANCH) \
-X github.com/prometheus/common/version.BuildUser=$(BUILDUSER)@$(BUILDHOST) \
-X github.com/prometheus/common/version.BuildDate=$(BUILDDATE)
LDFLAGS = -X github.com/carlpett/stream_exporter/vendor/github.com/prometheus/common/version.Version=$(VERSION) \
-X github.com/carlpett/stream_exporter/vendor/github.com/prometheus/common/version.Revision=$(REVISION) \
-X github.com/carlpett/stream_exporter/vendor/github.com/prometheus/common/version.Branch=$(BRANCH) \
-X github.com/carlpett/stream_exporter/vendor/github.com/prometheus/common/version.BuildUser=$(BUILDUSER)@$(BUILDHOST) \
-X github.com/carlpett/stream_exporter/vendor/github.com/prometheus/common/version.BuildDate=$(BUILDDATE)

all: build test

Expand Down

0 comments on commit 076d4ca

Please sign in to comment.