diff options
author | Ben Kochie <superq@gmail.com> | 2018-09-25 16:02:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-25 16:02:42 +0200 |
commit | c7dfb82dac2d599d9eb3012b55a067a89f37f5c7 (patch) | |
tree | 80b758bc183c0192da24c8a04e0692a4b8b82aa1 /.promu-cgo.yml | |
parent | 0fdc089187c3d5d9fe62e528653986ee6e71325b (diff) | |
download | prometheus_node_collector-c7dfb82dac2d599d9eb3012b55a067a89f37f5c7.tar.bz2 prometheus_node_collector-c7dfb82dac2d599d9eb3012b55a067a89f37f5c7.tar.xz prometheus_node_collector-c7dfb82dac2d599d9eb3012b55a067a89f37f5c7.zip |
Update build (#1081)
* Update build
* Only use CGO when building non-Linux.
* Update build to Go 1.11
* Use tab indenting consistently.
Signed-off-by: Ben Kochie <superq@gmail.com>
Diffstat (limited to '.promu-cgo.yml')
-rw-r--r-- | .promu-cgo.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.promu-cgo.yml b/.promu-cgo.yml new file mode 100644 index 0000000..adb6d19 --- /dev/null +++ b/.promu-cgo.yml | |||
@@ -0,0 +1,24 @@ | |||
1 | go: | ||
2 | cgo: true | ||
3 | repository: | ||
4 | path: github.com/prometheus/node_exporter | ||
5 | build: | ||
6 | binaries: | ||
7 | - name: node_exporter | ||
8 | flags: -a -tags 'netgo static_build' | ||
9 | ldflags: | | ||
10 | -X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}} | ||
11 | -X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}} | ||
12 | -X {{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}} | ||
13 | -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}} | ||
14 | -X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}} | ||
15 | tarball: | ||
16 | files: | ||
17 | - LICENSE | ||
18 | - NOTICE | ||
19 | crossbuild: | ||
20 | platforms: | ||
21 | - darwin/amd64 | ||
22 | - darwin/386 | ||
23 | - netbsd/amd64 | ||
24 | - netbsd/386 | ||