forked from percona/rds_exporter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
46 lines (46 loc) · 1.05 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
dist: build
builds:
- binary: rds_exporter
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm
- arm64
goarm:
- 7
ignore:
- goos: darwin
goarch: arm
flags:
- -v
ldflags:
- -s -w
- -X github.com/prometheus/common/version.Version={{ .Version }}
- -X github.com/prometheus/common/version.Revision={{ .ShortCommit }}
- -X github.com/prometheus/common/version.Branch={{ .Branch }}
- -X github.com/prometheus/common/version.BuildDate={{ .Date }}
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
snapshot:
name_template: "{{ .ShortCommit }}"
changelog:
skip: true
release:
github:
owner: percona
name: rds_exporter
draft: true
prerelease: auto
dockers:
- goos: linux
goarch: amd64
image_templates:
- "ghcr.io/percona/rds_exporter:{{.Major}}.{{.Minor}}"
- "ghcr.io/percona/rds_exporter:{{.Version}}"
dockerfile: Dockerfile.releaser
use: buildx