-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yml
More file actions
98 lines (91 loc) · 2.76 KB
/
.goreleaser.yml
File metadata and controls
98 lines (91 loc) · 2.76 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
90
91
92
93
94
95
96
97
98
project_name: hypeman
version: 2
before:
hooks:
- mkdir -p completions
- sh -c "go run ./cmd/hypeman/main.go @completion bash > completions/hypeman.bash"
- sh -c "go run ./cmd/hypeman/main.go @completion zsh > completions/hypeman.zsh"
- sh -c "go run ./cmd/hypeman/main.go @completion fish > completions/hypeman.fish"
- sh -c "go run ./cmd/hypeman/main.go @manpages -o man"
builds:
- id: macos
goos: [darwin]
goarch: [amd64, arm64]
binary: '{{ .ProjectName }}'
main: ./cmd/hypeman/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X github.com/kernel/hypeman-cli/pkg/cmd.version={{.Version}}'
- id: linux
goos: [linux]
goarch: ['386', arm, amd64, arm64]
env:
- CGO_ENABLED=0
binary: '{{ .ProjectName }}'
main: ./cmd/hypeman/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X github.com/kernel/hypeman-cli/pkg/cmd.version={{.Version}}'
- id: windows
goos: [windows]
goarch: ['386', amd64, arm64]
binary: '{{ .ProjectName }}'
main: ./cmd/hypeman/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X github.com/kernel/hypeman-cli/pkg/cmd.version={{.Version}}'
archives:
- id: linux-archive
ids: [linux]
name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [tar.gz]
files:
- completions/*
- man/*/*
- id: macos-archive
ids: [macos]
name_template: '{{ .ProjectName }}_{{ .Version }}_macos_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [zip]
files:
- completions/*
- man/*/*
- id: windows-archive
ids: [windows]
name_template: '{{ .ProjectName }}_{{ .Version }}_windows_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [zip]
files:
- completions/*
- man/*/*
snapshot:
version_template: '{{ .Tag }}-next'
nfpms:
- license: Apache-2.0
maintainer: Kernel <support@kernel.dev>
bindir: /usr
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
contents:
- src: man/man1/*.1.gz
dst: /usr/share/man/man1/
brews:
- name: hypeman
repository:
owner: kernel
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
homepage: https://github.com/kernel/hypeman
description: orchestrate cloud-hypervisor VMs
license: Apache-2.0
directory: Formula
install: |
bin.install "hypeman"
bash_completion.install "completions/hypeman.bash" => "hypeman"
zsh_completion.install "completions/hypeman.zsh" => "_hypeman"
fish_completion.install "completions/hypeman.fish"
man1.install Dir["man/man1/*.1.gz"]
test: |
system "#{bin}/hypeman", "--version"