Add osusergo flag in promu-cgo

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
pull/1939/head
Julien Pivotto 4 years ago
parent 809eed400a
commit dddae68cc7

@ -8,7 +8,7 @@ repository:
build: build:
binaries: binaries:
- name: node_exporter - name: node_exporter
flags: -a -tags 'netgo static_build' flags: -a -tags 'netgo osusergo static_build'
ldflags: | ldflags: |
-X github.com/prometheus/common/version.Version={{.Version}} -X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}} -X github.com/prometheus/common/version.Revision={{.Revision}}

Loading…
Cancel
Save