mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-03-01 00:41:13 +00:00
Add standard Prometheus build setup * CircleCI config * Makefile * Go modules * Golang-CI Lint * promu config * Remove /vendor * Remove mage build * Update READMEs https://github.com/prometheus-community/postgres_exporter/issues/478 Signed-off-by: Ben Kochie <superq@gmail.com>
20 lines
695 B
YAML
20 lines
695 B
YAML
go:
|
|
# This must match .circle/config.yml.
|
|
version: 1.15
|
|
repository:
|
|
path: github.com/prometheus-community/postgres_exporter
|
|
build:
|
|
binaries:
|
|
- name: postgres_exporter
|
|
path: ./cmd/postgres_exporter
|
|
flags: -a -tags 'netgo static_build'
|
|
ldflags: |
|
|
-X github.com/prometheus/common/version.Version={{.Version}}
|
|
-X github.com/prometheus/common/version.Revision={{.Revision}}
|
|
-X github.com/prometheus/common/version.Branch={{.Branch}}
|
|
-X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
|
|
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
|
|
tarball:
|
|
files:
|
|
- LICENSE
|