mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-17 18:19:04 +02:00
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
|
|
version: 2
|
|
|
|
before:
|
|
hooks:
|
|
# Removes the 32 MiB FIPS 140-3 entropy buffer that Go 1.26+ links into
|
|
# every binary. See tools/go-overlay/main.go.
|
|
- go run ./tools/go-overlay generate .go-overlay
|
|
|
|
builds:
|
|
- id: windows_exporter
|
|
main: ./cmd/windows_exporter
|
|
binary: windows_exporter-{{ .Arch }}
|
|
no_unique_dist_dir: true
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
env:
|
|
- CGO_ENABLED=0
|
|
flags:
|
|
- -trimpath
|
|
- -overlay=.go-overlay/overlay.json
|
|
tags:
|
|
- trimpath
|
|
ldflags:
|
|
- >-
|
|
-X github.com/prometheus/common/version.Version={{ .Version }}
|
|
-X github.com/prometheus/common/version.Revision={{ .FullCommit }}
|
|
-X github.com/prometheus/common/version.Branch={{ .Branch }}
|
|
-X github.com/prometheus/common/version.BuildUser=github-actions
|
|
-X github.com/prometheus/common/version.BuildDate={{ .Now.Format "20060102-15:04:05" }}
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|