File tree Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Expand file tree Collapse file tree 4 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,13 @@ build:
10
10
path : ./cmd/alertmanager
11
11
- name : amtool
12
12
path : ./cmd/amtool
13
- flags : -a -tags netgo
13
+ flags : -mod vendor - a -tags netgo
14
14
ldflags : |
15
- -s
16
- -X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}
17
- -X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
18
- -X {{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}}
19
- -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
20
- -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
15
+ -X github.com/prometheus/common/version.Version={{.Version}}
16
+ -X github.com/prometheus/common/version.Revision={{.Revision}}
17
+ -X github.com/prometheus/common/version.Branch={{.Branch}}
18
+ -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
19
+ -X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
21
20
tarball :
22
21
files :
23
22
- examples/ha/alertmanager.yml
Original file line number Diff line number Diff line change 1
- FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
1
+ FROM registry.svc.ci.openshift.org/openshift/release:golang-1.11 AS builder
2
2
3
3
ARG ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager
4
4
COPY . ${ALERTMANAGER_GOPATH}
Original file line number Diff line number Diff line change 1
- FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.10 AS builder
1
+ FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.11 AS builder
2
2
3
3
ARG ALERTMANAGER_GOPATH=/go/src/github.com/prometheus/alertmanager
4
4
ARG BUILD_PROMU=false
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ GO ?= go
29
29
GOFMT ?= $(GO)fmt
30
30
FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
31
31
ifeq ($(BUILD_PROMU),false)
32
- PROMU := promu
32
+ PROMU := $(shell which promu)
33
33
else
34
34
PROMU := $(FIRST_GOPATH)/bin/promu
35
35
endif
@@ -199,11 +199,15 @@ common-docker-tag-latest:
199
199
promu: $(PROMU)
200
200
201
201
$(PROMU):
202
+ ifeq ($(BUILD_PROMU),false)
203
+ @echo "using installed promu: $(PROMU)"
204
+ else
202
205
$(eval PROMU_TMP := $(shell mktemp -d))
203
206
curl -s -L $(PROMU_URL) | tar -xvzf - -C $(PROMU_TMP)
204
207
mkdir -p $(FIRST_GOPATH)/bin
205
208
cp $(PROMU_TMP)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM)/promu $(FIRST_GOPATH)/bin/promu
206
209
rm -r $(PROMU_TMP)
210
+ endif
207
211
208
212
.PHONY: proto
209
213
proto:
You can’t perform that action at this time.
0 commit comments