--- project_name: benthos version: 2 builds: - id: connect main: cmd/benthos/main.go binary: benthos 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=benthos -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/benthos-cloud/main.go binary: benthos goos: [ darwin, linux ] goarch: [ amd64, arm64 ] env: - CGO_ENABLED=0 ldflags: > -s -w -X main.Version={{.Version}} -X main.DateBuilt={{.Date}} -X main.BinaryName=benthos - id: connect-lambda main: cmd/serverless/connect-lambda/main.go binary: benthos-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: 'benthos-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: "benthos-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: Benthos is a high performance and resilient stream processor. package_name: benthos 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/benthos 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: igiven.com maintainer: Redpanda Data 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 }}