forked from redpanda-data/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
128 lines (119 loc) · 4.16 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
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, 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
-X github.com/redpanda-data/connect/v4/internal/telemetry.ExportHost={{ if index .Env "CONNECT_TELEMETRY_HOST" }}{{ .Env.CONNECT_TELEMETRY_HOST }}{{ else }}{{ end }}
-X github.com/redpanda-data/connect/v4/internal/telemetry.ExportDelay={{ if index .Env "CONNECT_TELEMETRY_DELAY" }}{{ .Env.CONNECT_TELEMETRY_DELAY }}{{ else }}{{ end }}
-X github.com/redpanda-data/connect/v4/internal/telemetry.ExportPeriod={{ if index .Env "CONNECT_TELEMETRY_PERIOD" }}{{ .Env.CONNECT_TELEMETRY_PERIOD }}{{ else }}{{ end }}
- 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-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-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
nfpms:
- id: connect-linux-pkgs
description: Redpanda Connect is a high performance and resilient stream processor.
package_name: redpanda-connect
file_name_template: "{{ .ConventionalFileName }}"
# this is the default value, but specifying explicitly it relates to the symlink creation below
bindir: /usr/bin
contents:
- src: /usr/bin/redpanda-connect
dst: /usr/bin/.rpk-ac.connect
type: symlink
builds:
- connect
vendor: Redpanda Data, Inc.
license: "https://github.com/redpanda-data/connect/blob/main/licenses/README.md"
homepage: redpanda.com
maintainer: Redpanda Data <[email protected]>
formats:
- deb
- rpm
publishers:
# Gets run once per artifact (deb or rpm)
- name: Publish Linux packages to Cloudsmith
ids:
- connect-linux-pkgs
cmd: ./resources/scripts/push_pkg_to_cloudsmith.sh {{ .ArtifactPath }}
env:
- CLOUDSMITH_API_KEY={{ .Env.CLOUDSMITH_API_KEY }}