-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
89 lines (81 loc) · 2.23 KB
/
Copy path.goreleaser.yaml
File metadata and controls
89 lines (81 loc) · 2.23 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
builds:
- binary: flagsmith
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- >-
-s -w -X github.com/Flagsmith/flagsmith-cli/v2/internal/version.Version={{ if .IsSnapshot }}v{{ .Version }}{{ else }}{{ .Tag }}{{ end }}
mod_timestamp: "{{ .CommitTimestamp }}"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- name_template: "flagsmith_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
files:
- LICENSE
- README.md
checksum:
name_template: checksums.txt
docker_digest:
name_template: digests.txt
dockers_v2:
- images:
- ghcr.io/flagsmith/flagsmith-cli
tags:
- "{{ .Tag }}"
- "{{ .Version }}"
# Beta releases still take :latest — nothing stabler is published yet.
- latest
platforms:
- linux/amd64
- linux/arm64
labels:
# Links the ghcr package to this repo.
org.opencontainers.image.source: https://github.com/Flagsmith/flagsmith-cli
org.opencontainers.image.version: "{{ .Tag }}"
org.opencontainers.image.revision: "{{ .FullCommit }}"
org.opencontainers.image.licenses: MIT
homebrew_casks:
- name: flagsmith
repository:
owner: Flagsmith
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
pull_request:
enabled: true
homepage: https://github.com/Flagsmith/flagsmith-cli
description: The Flagsmith command-line interface
binaries:
- flagsmith
generate_completions_from_executable:
executable: flagsmith
args: [completion]
shell_parameter_format: cobra
shells: [bash, zsh, fish]
hooks:
post:
# Homebrew quarantines what it downloads;
# Unqarantine manually until we start notarising the Mac binaries.
install: |
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/flagsmith"]
end
# changelog handled by release-please.
changelog:
disable: true
release:
mode: keep-existing
prerelease: auto