forked from cloudquery/cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
66 lines (66 loc) · 1.71 KB
/
.goreleaser.yaml
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
before:
hooks:
- go mod download
- go generate ./...
builds:
- flags:
- -buildmode=exe
env:
- GO111MODULE=on
main: ./main.go
ldflags:
- -s -w -X github.com/cloudquery/cloudquery/cmd.Version={{.Version}} -X github.com/cloudquery/cloudquery/cmd.Commit={{.Commit}} -X github.com/cloudquery/cloudquery/cmd.Date={{.Date}}
goos:
- windows
- linux
- darwin
goarch:
- amd64
archives:
-
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format: binary
-
id: homebrew
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format: zip
dockers:
-
goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
image_templates:
- "ghcr.io/cloudquery/cloudquery:latest"
- "ghcr.io/cloudquery/cloudquery:{{.Version}}"
- "ghcr.io/cloudquery/cloudquery:{{ .Major }}.{{ .Minor }}"
build_flag_templates:
- "--label=org.opencontainers.image.source=https://github.com/cloudquery/cloudquery"
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
-
name: cloudquery
tap:
owner: cloudquery
name: homebrew-tap
url_template: "https://github.com/cloudquery/cloudquery/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://cloudquery.io"
description: "Easily monitor and ask questions about your infrastructure."