-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
94 lines (82 loc) · 2.18 KB
/
.goreleaser.yml
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
90
91
92
93
94
project_name: pimp
env:
- PIMP_AUTHOR=Aymeric Beaumet <[email protected]>
- PIMP_DESCRIPTION=Command expander and task runner with pattern matching, templating and scripting capabilities
- PIMP_HOMEPAGE=https://pimp.dev
- PIMP_LICENSE=MIT
- PIMP_SOURCE=https://github.com/aymericbeaumet/pimp
changelog:
sort: asc
filters:
exclude:
- '^GitBook:'
- '^chore:'
- '^docs:'
- '^style:'
- '^test:'
# build
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/pimp
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
archives:
- format_overrides:
- goos: windows
format: zip
# packaging
brews:
- tap:
owner: aymericbeaumet
name: homebrew-tap
token: "{{.Env.HOMEBREW_TAP_GITHUB_TOKEN}}"
folder: Formula
homepage: "{{.Env.PIMP_HOMEPAGE}}"
description: "{{.Env.PIMP_DESCRIPTION}}"
license: "{{.Env.PIMP_LICENSE}}"
dependencies:
- name: fzf
dockers:
- image_templates:
- "aymericbeaumet/{{.ProjectName}}:latest"
- "aymericbeaumet/{{.ProjectName}}:{{.Tag}}"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.authors={{.Env.PIMP_AUTHOR}}"
- "--label=org.opencontainers.image.url={{.Env.PIMP_HOMEPAGE}}"
- "--label=org.opencontainers.image.source={{.Env.PIMP_SOURCE}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.licenses={{.Env.PIMP_LICENSE}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.description={{.Env.PIMP_DESCRIPTION}}"
- "--platform=linux/amd64"
use_buildx: true
nfpms:
- homepage: "{{.Env.PIMP_HOMEPAGE}}"
maintainer: "{{.Env.PIMP_AUTHOR}}"
description: "{{.Env.PIMP_DESCRIPTION}}"
license: "{{.Env.PIMP_LICENSE}}"
formats:
- apk
- deb
- rpm
dependencies:
- fzf
# release
release:
github:
owner: aymericbeaumet
name: pimp
prerelease: auto