Skip to content

Commit 929b3f6

Browse files
committed
Add goreleaser configurations
1 parent b174458 commit 929b3f6

File tree

4 files changed

+53
-18
lines changed

4 files changed

+53
-18
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
dist/
3+
github-token.env

.goreleaser.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
11+
env_files:
12+
github_token: github-token.env
13+
14+
before:
15+
hooks:
16+
# You may remove this if you don't use go modules.
17+
- go mod tidy
18+
19+
builds:
20+
- env:
21+
- CGO_ENABLED=0
22+
goos:
23+
- linux
24+
- windows
25+
- darwin
26+
27+
archives:
28+
- format: tar.gz
29+
# this name template makes the OS and Arch compatible with the results of `uname`.
30+
name_template: >-
31+
{{ .ProjectName }}_
32+
{{- title .Os }}_
33+
{{- if eq .Arch "amd64" }}x86_64
34+
{{- else if eq .Arch "386" }}i386
35+
{{- else }}{{ .Arch }}{{ end }}
36+
{{- if .Arm }}v{{ .Arm }}{{ end }}
37+
# use zip for windows archives
38+
format_overrides:
39+
- goos: windows
40+
format: zip
41+
42+
checksum:
43+
name_template: 'checksums.txt'
44+
45+
changelog:
46+
sort: asc
47+
filters:
48+
exclude:
49+
- "^docs:"
50+
- "^test:"

docker-env

-2.37 MB
Binary file not shown.

docker.template

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)