forked from gomatic/renderizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
96 lines (79 loc) · 2.51 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
95
96
project_name: renderizer
builds:
-
binary: renderizer
main: ./cmd/renderizer/main.go
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
ldflags: '-s -w -X main.version={{.Version}} -X main.tag={{.Tag}} -X main.commitHash={{.FullCommit}} -X main.commitTime={{ index .Env "COMMIT_TIME" }} -X main.buildTime={{ time "20060102T150405" }}'
dist: build/dist
snapshot:
name_template: '{{.Version}}.snapshot'
release:
github:
owner: gomatic
name: renderizer
signs:
-
artifacts: all
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- docs
- Merge pull request
- Merge branch
archives:
-
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
brews:
-
# Name template of the recipe
# Default to project name
name: renderizer
# GOARM to specify which 32-bit arm version to use if there are multiple versions
# from the build section. Brew formulas support atm only one 32-bit version.
# Default is 6 for all artifacts or each id if there a multiple versions.
goarm: 6
# GitHub/GitLab repository to push the formula to
tap:
owner: gomatic
name: homebrew-renderizer
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/metawave/renderizer/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: goreleaserbot
email: nicerobot@users.noreply.github.com
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# Your app's homepage.
# Default is empty.
homepage: "https://github.com/metawave/renderizer"
# Your app's description.
# Default is empty.
description: "CLI to render Go template text files based on command line parameters and/or a YAML"
# SPDX identifier of your app's license.
# Default is empty.
license: "GPL-3.0"
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "renderizer"