forked from redpanda-data/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
118 lines (108 loc) · 3.35 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
project_name: redpanda-connect
version: 1
builds:
- id: connect
main: cmd/redpanda-connect/main.go
binary: redpanda-connect
goos: [ windows, darwin, linux, freebsd, openbsd ]
goarch: [ amd64, arm, arm64 ]
goarm: [ 6, 7 ]
hooks:
post:
# The binary is signed and notarized when running a production release, but for snapshot builds notarization is
# skipped and only ad-hoc signing is performed (not cryptographic material is needed).
#
# note: environment variables required for signing and notarization (set in CI) but are not needed for snapshot builds
# QUILL_SIGN_P12, QUILL_SIGN_PASSWORD, QUILL_NOTARY_KEY, QUILL_NOTARY_KEY_ID, QUILL_NOTARY_ISSUER
- cmd: ./resources/scripts/sign_for_darwin.sh "{{ .Os }}" "{{ .Path }}" "{{ .IsSnapshot }}"
env:
- QUILL_LOG_FILE=target/dist/quill-{{ .Target }}.log
ignore:
- goos: windows
goarch: arm
- goos: darwin
goarch: arm
env:
- CGO_ENABLED=0
ldflags: >
-s -w
-X main.Version={{.Version}}
-X main.DateBuilt={{.Date}}
-X main.BinaryName=redpanda-connect
- id: connect-cloud
main: cmd/redpanda-connect-cloud/main.go
binary: redpanda-connect
goos: [ darwin, linux ]
goarch: [ amd64, arm64 ]
env:
- CGO_ENABLED=0
ldflags: >
-s -w
-X main.Version={{.Version}}
-X main.DateBuilt={{.Date}}
-X main.BinaryName=redpanda-connect
- id: connect-community
main: cmd/redpanda-connect-community/main.go
binary: redpanda-connect
goos: [ darwin, linux ]
goarch: [ amd64, arm64 ]
env:
- CGO_ENABLED=0
ldflags: >
-s -w
-X main.Version={{.Version}}
-X main.DateBuilt={{.Date}}
-X main.BinaryName=redpanda-connect
- id: connect-lambda
main: cmd/serverless/connect-lambda/main.go
binary: redpanda-connect-lambda
env:
- CGO_ENABLED=0
goos: [ linux ]
goarch: [ amd64 ]
- id: connect-lambda-al2
main: cmd/serverless/connect-lambda/main.go
binary: bootstrap
env:
- CGO_ENABLED=0
goos: [ linux ]
goarch: [ amd64, arm64 ]
archives:
- id: connect
builds: [ connect ]
format: tar.gz
files:
- README.md
- CHANGELOG.md
- licenses
- id: connect-cloud
builds: [ connect-cloud ]
format: tar.gz
name_template: 'redpanda-connect-cloud_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
files:
- README.md
- CHANGELOG.md
- licenses
- id: connect-community
builds: [ connect-community ]
format: tar.gz
name_template: 'redpanda-connect-community_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
files:
- README.md
- CHANGELOG.md
- licenses
- id: connect-lambda
builds: [ connect-lambda ]
format: zip
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
- id: connect-lambda-al2
builds: [ connect-lambda-al2 ]
format: zip
name_template: "redpanda-connect-lambda-al2_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
dist: target/dist
release:
github:
owner: redpanda-data
name: connect
prerelease: auto
disable: false