-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
89 lines (78 loc) · 1.88 KB
/
.goreleaser.yaml
File metadata and controls
89 lines (78 loc) · 1.88 KB
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
version: 2
project_name: TG-FileStreamBot
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: fsb
main: ./cmd/fsb
env:
- CGO_ENABLED=0
flags: -tags=musl
ldflags: "-extldflags -static -s -w"
binary: fsb
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
dockers_v2:
- images:
- "ghcr.io/everythingsuckz/fsb"
ids:
- fsb
tags:
- "{{ .Tag }}"
- "v{{ .Major }}.{{ .Minor }}"
- "{{ if not .Prerelease }}latest{{ end }}"
dockerfile: goreleaser.Dockerfile
platforms:
- linux/amd64
- linux/arm64
labels:
"org.opencontainers.image.name": "{{.ProjectName}}"
"org.opencontainers.image.created": "{{.Date}}"
"org.opencontainers.image.revision": "{{.FullCommit}}"
"org.opencontainers.image.version": "{{.Version}}"
"org.opencontainers.image.description": "A high-performance Telegram File Streamer Bot written in Go. Stream files directly from Telegram to your download manager or media player with extreme efficiency."
"org.opencontainers.image.source": "{{.GitURL}}"
retry:
attempts: 5
delay: 10s
max_delay: 10s
archives:
- formats: ["tar.gz"]
name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: windows
formats: ["zip"]
signs:
- artifacts: checksum
cmd: gpg2
args:
- "--batch"
- "-u"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
checksum:
name_template: "{{ .ProjectName }}-{{ .Tag }}-checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
github:
owner: EverythingSuckz
name: TG-FileStreamBot
prerelease: auto