-
Notifications
You must be signed in to change notification settings - Fork 29
/
.goreleaser.yaml
107 lines (95 loc) · 2.57 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
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
project_name: raccoon
release:
prerelease: auto
before:
hooks:
- go mod tidy
changelog:
use: github
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^build:"
builds:
- id: "raccoon"
main: ./
flags: [-trimpath]
ldflags:
- -s -w
- -X github.com/raystack/raccoon/config.Version={{.Tag}}
- -X github.com/raystack/raccoon/config.BuildCommit={{.FullCommit}}
- -X github.com/raystack/raccoon/config.BuildDate={{.Date}}
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
# confluent-kafka-go doesn't support arm64 on windows
# https://github.com/confluentinc/confluent-kafka-go/blob/master/kafka/librdkafka_vendor/README.md
- goos: windows
goarch: arm64
env:
- CGO_ENABLED=1
- >-
{{- if eq .Os "darwin" }}
{{- if eq .Arch "amd64" }}CC=x86_64-apple-darwin21.1-clang{{- end }}
{{- if eq .Arch "arm64" }}CC=aarch64-apple-darwin21.1-clang{{- end }}
{{- end }}
{{- if eq .Os "linux" }}
{{- if eq .Arch "amd64" }}CC=x86_64-linux-gnu-gcc{{- end}}
{{- if eq .Arch "arm64" }}CC=aarch64-linux-gnu-gcc{{- end }}
{{- end}}
{{- if eq .Os "windows" }}
{{- if eq .Arch "amd64" }}CC=x86_64-w64-mingw32-gcc{{- end }}
{{- end}}
archives:
- id: "archives"
format_overrides:
- goos: windows
format: zip
dockers:
- id: dockerhub
image_templates:
- "docker.io/raystack/{{.ProjectName}}:latest"
- "docker.io/raystack/{{.ProjectName}}:{{ .Version }}"
- "docker.io/raystack/{{.ProjectName}}:{{ .Tag }}-amd64"
nfpms:
- maintainer: Raystack
description: Scalable event ingestion tool.
homepage: https://github.com/raystack/raccoon
license: Apache 2.0
formats:
- deb
- rpm
- apk
scoops:
- homepage: "https://github.com/raystack/raccoon"
description: "Scalable event ingestion tool"
license: Apache 2.0
repository:
owner: raystack
name: scoop-bucket
brews:
- name: raccoon
homepage: "https://github.com/raystack/raccoon"
description: "Scalable event ingestion tool"
repository:
owner: raystack
name: homebrew-tap
license: "Apache 2.0"
directory: Formula
dependencies:
- name: git
install: |-
bin.install "raccoon"
commit_author:
name: Ravi Suhag
email: [email protected]