-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
58 lines (58 loc) · 1.62 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: 2
builds:
- main: cmd/vmware-exporter/main.go
binary: vmware-exporter
flags: -tags netgo
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X vmware-exporter/internal/version.BuildTime={{.Date}}
- -X vmware-exporter/internal/version.Commit={{.FullCommit}}
- -X vmware-exporter/internal/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Version={{.Version}}
- -X github.com/prometheus/common/version.Revision={{.Version}}
- -X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser=hamnsk
- -X github.com/prometheus/common/version.BuildDate={{.Date}}
goos:
- linux
- darwin
goarch:
- amd64
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: arm
- goos: windows
goarch: 386
- goos: windows
goarch: amd64
dockers:
- image_templates:
- "ghcr.io/hamnsk/vmware-exporter:{{ .Version }}"
- "ghcr.io/hamnsk/vmware-exporter:latest"
dockerfile: 'Dockerfile'
build_flag_templates:
- "--platform=linux/amd64"
archives:
- name_template: "vmware-exporter-{{ .Version }}.{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
checksum:
name_template: checksums.txt
nfpms:
- homepage: https://github.com/hamnsk/vmware-exporter
maintainer: s.andrynin@gmail.com
description: VMWare Exporter
license: MIT
formats:
- deb
- rpm
bindir: /opt/prometheus/exporters/vmware-exporter
release:
github:
owner: hamnsk
name: vmware-exporter
draft: false
prerelease: false