aboutsummaryrefslogtreecommitdiff
path: root/.promu-cgo.yml
diff options
context:
space:
mode:
Diffstat (limited to '.promu-cgo.yml')
-rw-r--r--.promu-cgo.yml24
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 @@
1go:
2 cgo: true
3repository:
4 path: github.com/prometheus/node_exporter
5build:
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"}}
15tarball:
16 files:
17 - LICENSE
18 - NOTICE
19crossbuild:
20 platforms:
21 - darwin/amd64
22 - darwin/386
23 - netbsd/amd64
24 - netbsd/386