mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
Fix promu build
This commit is contained in:
committed by
Calle Pettersson
parent
94caf8ee61
commit
caf8742dcd
@@ -1,6 +1,8 @@
|
|||||||
repository:
|
repository:
|
||||||
path: github.com/martinlindhe/wmi_exporter
|
path: github.com/martinlindhe/wmi_exporter
|
||||||
build:
|
build:
|
||||||
|
binaries:
|
||||||
|
- name: wmi_exporter
|
||||||
ldflags: |
|
ldflags: |
|
||||||
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}
|
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}
|
||||||
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
|
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -2,4 +2,4 @@ fmt:
|
|||||||
gofmt -l -w -s .
|
gofmt -l -w -s .
|
||||||
|
|
||||||
build:
|
build:
|
||||||
promu build -v .
|
promu build -v
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ install:
|
|||||||
build_script:
|
build_script:
|
||||||
- ps: gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru
|
- ps: gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru
|
||||||
- govendor test -v +local
|
- govendor test -v +local
|
||||||
- promu build -v .
|
- promu build -v
|
||||||
- ps: |
|
- ps: |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
if($env:APPVEYOR_REPO_TAG -eq "True") {
|
if($env:APPVEYOR_REPO_TAG -eq "True") {
|
||||||
|
|||||||
Reference in New Issue
Block a user