This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 168
/
.goreleaser.yml
192 lines (176 loc) · 5.19 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# The documentation is at http://goreleaser.com
# Release instructions
# 1) git tag -a 0.1.0-alpha.1 -m "Release 0.1.0-alpha-1"
# 2) goreleaser //--skip-publish for dry-run
before:
hooks:
- go mod download
#make sure generate up to date
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/promscale/
id: promscale
ldflags:
- -s -w -X github.com/timescale/promscale/pkg/version.CommitHash={{.Commit}} -X github.com/timescale/promscale/pkg/version.Branch={{.Branch}} -X github.com/timescale/promscale/pkg/telemetry.BuildPlatform=goreleaser
- env:
- CGO_ENABLED=0
main: ./cmd/prom-migrator
dir: migration-tool
id: prom-migrator
binary: prom-migrator
#don't publish scoop but overwrite the weird names
scoop:
name: promscale
commit_author:
name: Timescale
email: support@timescale.com
nfpms:
- builds:
- promscale
formats:
- rpm
- deb
bindir: /usr/bin
file_name_template: "{{ .Binary }}_{{ .RawVersion }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
description: |
Promscale is a horizontally scalable and operationally mature analytical
platform for Prometheus data that offers the combined power of PromQL
and SQL, enabling developers to ask any question, create any dashboard,
and achieve greater visibility into their systems. Promscale is built
on top of TimescaleDB, the relational database for time-series built on
top of PostgreSQL.
license: Apache License 2.0
maintainer: Timescale <info@timescale.com>
contents:
- src: build/systemd/promscale.service
dst: /usr/lib/systemd/system/promscale.service
- src: build/conf/promscale.conf
dst: /etc/sysconfig/promscale.conf
type: "config|noreplace"
packager: rpm
- src: build/env/rpm.env
dst: /etc/sysconfig/promscale.env
packager: rpm
- src: build/conf/promscale.conf
dst: /etc/promscale.conf
type: "config|noreplace"
packager: deb
- src: build/env/deb.env
dst: /etc/promscale.env
packager: deb
rpm:
summary: An analytical platform and long-term store for Prometheus
group: Network Servers
overrides:
rpm:
dependencies:
- shadow-utils
scripts:
preinstall: "build/scripts/preinstall.sh"
postinstall: "build/scripts/postinstall.sh"
postremove: "build/scripts/postremove.sh"
archives:
- format: binary
builds:
- promscale
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- id: prom-migrator
format: binary
builds:
- prom-migrator
name_template: "{{ .Binary }}_0.0.6_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
-
ids: []
skip_push: false
dockerfile: ./build/Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
extra_files: [.git, go.sum, go.mod, pkg, cmd]
image_templates:
- "timescale/promscale:{{ .Tag }}-amd64"
-
ids: []
skip_push: false
dockerfile: ./build/Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64"
extra_files: [.git, go.sum, go.mod, pkg, cmd]
image_templates:
- "timescale/promscale:{{ .Tag }}-arm64"
- ids: []
skip_push: false
dockerfile: ./build/prom-migrator/Dockerfile
extra_files:
- .git
- go.sum
- go.mod
- pkg
- migration-tool
image_templates:
- "timescale/prom-migrator:0.0.6"
- "timescale/prom-migrator:latest"
docker_manifests:
- name_template: 'timescale/promscale:{{ .Tag }}'
image_templates:
- 'timescale/promscale:{{ .Tag }}-amd64'
- 'timescale/promscale:{{ .Tag }}-arm64'
- name_template: 'timescale/promscale:{{ .Major }}.{{ .Minor }}'
image_templates:
- 'timescale/promscale:{{ .Tag }}-amd64'
- 'timescale/promscale:{{ .Tag }}-arm64'
# skip_push=auto prevents push for pre-release tags
skip_push: auto
- name_template: 'timescale/promscale:latest'
image_templates:
- 'timescale/promscale:{{ .Tag }}-amd64'
- 'timescale/promscale:{{ .Tag }}-arm64'
# skip_push=auto prevents push for pre-release tags
skip_push: auto
release:
draft: true
extra_files:
- glob: ./dist/rpm/*