From f5f28110466a78d959ffa3d08093efbad71a62d9 Mon Sep 17 00:00:00 2001 From: Jackson West Date: Wed, 11 Oct 2023 07:35:01 -0500 Subject: [PATCH] sets a static build user for prometheus tag --- projects/prometheus/prometheus/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/prometheus/prometheus/Makefile b/projects/prometheus/prometheus/Makefile index 2de215757d..95e846fd47 100644 --- a/projects/prometheus/prometheus/Makefile +++ b/projects/prometheus/prometheus/Makefile @@ -12,7 +12,7 @@ SOURCE_PATTERNS=./cmd/prometheus ./cmd/promtool EXTRA_GOBUILD_FLAGS=-tags netgo,builtinassets GIT_COMMIT=$(shell git -C $(REPO) rev-parse --short HEAD) GIT_BRANCH=$(shell git -C $(REPO) rev-parse --abbrev-ref HEAD) -BUILD_USER=$(shell id -u -n) +BUILD_USER=ec2-user BUILD_DATE=$(shell git -C $(REPO) show -s --format=format:%cd --date=format:'%Y-%m-%dT%H:%M:%SZ' HEAD) EXTRA_GO_LDFLAGS=-X github.com/prometheus/common/version.Version=$(GIT_TAG) \ -X github.com/prometheus/common/version.Revision=$(GIT_COMMIT) \