Skip to content

Commit 05a83fb

Browse files
authored
Merge pull request #52 from ssnd/goreleaser
[goreleaser] Setup automated builds for new file.d versions
2 parents 228a048 + 278b7b5 commit 05a83fb

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

Diff for: .goreleaser.yml

+25-2
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,41 @@ env:
66
- CGO_ENABLED=0
77
checksum:
88
name_template: '{{ .ProjectName }}_checksums.txt'
9-
changelog:
10-
skip: true
119
release:
1210
draft: true
1311
prerelease: auto
12+
13+
archives:
14+
- replacements:
15+
darwin: Darwin
16+
linux: Linux
17+
amd64: x86_64
18+
1419
builds:
1520
- main: ./cmd
1621
goos:
1722
- linux
1823
- darwin
1924
goarch:
2025
- amd64
26+
- arm64
2127
mod_timestamp: '{{ .CommitTimestamp }}'
2228
flags:
2329
- -trimpath
30+
nfpms:
31+
-
32+
maintainer: Vitkovskiy Vladimir <[email protected]>
33+
formats:
34+
- deb
35+
description: |-
36+
file.d is a tool for building data pipelines:
37+
read, process and output events.
38+
homepage: https://ozontech.github.io/file.d/
39+
vendor: Ozon Tech
40+
bindir: /usr/bin
41+
contents:
42+
- src: ./releaser/config.yaml
43+
dst: /etc/file.d/config.yaml
44+
type: config
45+
- src: ./releaser/file.d.service
46+
dst: /etc/systemd/system/file.d.service

Diff for: releaser/config.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pipelines:
2+
welcome:
3+
input:
4+
type: file
5+
persistence_mode: async
6+
watching_dir: /tmp/
7+
filename_pattern: welcome.json
8+
offsets_file: /tmp/offsets.yaml
9+
offsets_op: reset
10+
output:
11+
type: stdout

Diff for: releaser/file.d.service

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=File.d
3+
4+
[Service]
5+
ExecStart=/usr/bin/file.d --config /etc/file.d/config.yaml
6+
Restart=on-failure
7+
MemoryAccounting=true
8+
MemoryHigh=1536M
9+
MemoryMax=2G
10+
11+
[Install]
12+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)