define binary name in promu configuration file (#650)

This commit is contained in:
Christian Will 2017-08-22 08:24:07 -07:00 committed by Johannes 'fish' Ziemke
parent 505275b48c
commit 2ed98fd5a5
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,8 @@ go:
repository: repository:
path: github.com/prometheus/node_exporter path: github.com/prometheus/node_exporter
build: build:
binaries:
- name: node_exporter
flags: -a -tags 'netgo static_build' flags: -a -tags 'netgo static_build'
ldflags: | ldflags: |
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}} -X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}