Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 6cd5fba

Browse files
committed
add goreleaser config to doko
1 parent 3284f3e commit 6cd5fba

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

.goreleaser.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
project_name: doko
2+
3+
env:
4+
- CGO_ENABLED=0
5+
6+
release:
7+
prerelease: auto
8+
draft: true
9+
name_template: "Doko 🐋 v{{ .Version }}"
10+
11+
before:
12+
hooks:
13+
- go mod tidy
14+
15+
builds:
16+
- <<: &build_defaults
17+
binary: bin/doko
18+
main: ./
19+
ldflags:
20+
- -X main.version=v{{ .Version }}
21+
- -X main.buildDate={{ .Env.BuildDate }}
22+
23+
id: macos
24+
goos: [ darwin ]
25+
goarch: [ amd64, arm64, arm ]
26+
27+
- <<: *build_defaults
28+
id: linux
29+
goos: [ linux ]
30+
goarch: [ amd64, arm64, arm, 386 ]
31+
32+
- <<: *build_defaults
33+
id: windows
34+
goos: [ windows ]
35+
goarch: [ amd64, arm64, arm, 386 ]
36+
37+
- <<: *build_defaults
38+
id: freebsd
39+
goos: [ freebsd ]
40+
goarch: [ amd64, arm64, arm, 386 ]
41+
42+
archives:
43+
- id: nix
44+
builds: [ macos, linux, freebsd ]
45+
<<: &archive_defaults
46+
name_template: "{{ .ProjectName }}_{{ .Os }}_v{{ .Version }}_{{ .Arch }}"
47+
48+
wrap_in_directory: "true"
49+
replacements:
50+
darwin: macos
51+
format: zip
52+
files:
53+
- LICENSE
54+
55+
- id: windows
56+
builds: [ windows ]
57+
<<: *archive_defaults
58+
wrap_in_directory: "false"
59+
format: zip
60+
files:
61+
- LICENSE
62+
63+
nfpms:
64+
- license: MIT
65+
maintainer: abdfnx
66+
homepage: https://github.com/abdfnx/doko
67+
bindir: /usr
68+
file_name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Arch }}"
69+
description: "🐳 docker you know but with console user interface."
70+
formats:
71+
- apk
72+
- deb
73+
- rpm
74+
75+
brews:
76+
- goarm: 6
77+
tap:
78+
owner: abdfnx
79+
name: homebrew-tap
80+
homepage: "https://github.com/abdfnx/doko"
81+
description: "🐳 docker you know but with console user interface."
82+
83+
checksum:
84+
name_template: "checksums.txt"
85+
86+
snapshot:
87+
name_template: "{{ .Tag }}-next"

0 commit comments

Comments
 (0)