-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yml
116 lines (116 loc) · 2.56 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: 2
builds:
- &build-default
id: default
main: .
ldflags:
- -X github.com/prometheus/common/version.Version={{ .Version }}
- -X github.com/prometheus/common/version.Revision={{ .Commit }}
- -X github.com/prometheus/common/version.Branch={{ .Branch }}
- -X github.com/prometheus/common/version.BuildUser=GoReleaser
- -X github.com/prometheus/common/version.BuildDate={{ .CommitDate }}
env:
- CGO_ENABLED=0
flags:
- -trimpath
goos:
- darwin
- dragonfly
- freebsd
- illumos
- linux
- netbsd
goarch:
- '386'
- amd64
- arm
- arm64
- mips
- mips64
- mips64le
- mipsle
- ppc64
- ppc64le
- riscv64
- s390x
goarm:
- '5'
- '6'
- '7'
goamd64:
- v1
goarm64:
- v8.0
gomips:
- hardfloat
go386:
- sse2
goppc64:
- power8
goriscv64:
- rva22u64
ignore:
- goos: freebsd
goarch: arm
goarm: '5'
- goos: netbsd
goarch: arm
goarm: '5'
mod_timestamp: '{{ .CommitTimestamp }}'
- <<: *build-default
id: windows
goos:
- windows
goarch:
- '386'
- amd64
- arm64
archives:
- &archive-default
id: default
builds:
- default
- windows
name_template: '{{ .ProjectName }}-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{
if .Arm }}v{{ .Arm }}{{ end }}{{ if and .Mips (ne .Mips "hardfloat") }}-{{
.Mips }}{{ end }}'
format: tar.gz
files:
- LICENSE
- NOTICE
- <<: *archive-default
id: zip
builds:
- windows
format: zip
checksum:
name_template: sha256sums.txt
kos:
- id: default
repository: ghcr.io/maxbrunet/prometheus-elasticache-sd
bare: true
tags:
- '{{ .Tag }}'
- latest
base_image: quay.io/prometheus/busybox@sha256:dfa54ef35e438b9e71ac5549159074576b6382f95ce1a434088e05fd6b730bc4
creation_time: '{{ .CommitTimestamp }}'
ko_data_creation_time: '{{ .CommitTimestamp }}'
labels:
org.opencontainers.image.licenses: Apache-2.0
org.opencontainers.image.source: https://github.com/maxbrunet/prometheus-elasticache-sd
org.opencontainers.image.url: https://github.com/maxbrunet/prometheus-elasticache-sd
user: 1000:1000
platforms:
- linux/amd64
- linux/arm/v7
- linux/arm64
- linux/ppc64le
- linux/s390x
docker_signs:
- artifacts: manifests
cmd: cosign
args:
- sign
- --yes
- ${artifact}
output: true