forked from omrikiei/ktunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
90 lines (83 loc) · 2.21 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: ktunnel
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
ldflags:
- "-s -w"
# hooks:
# post: ./compress_binaries.sh
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
archives:
- id: default
name_template: >-
{{.ProjectName}}_{{.Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
draft: false
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
prerelease: auto
nfpms:
# note that this is an array of nfpm configs
- id: ktunnel
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- ktunnel
homepage: https://github.com/omrikiei/ktunnel
maintainer: omrikiei <[email protected]>
description: Ktunnel is a network tunneling tool for kubernetes
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
epoch: 1
brews:
-
tap:
owner: omrikiei
name: ktunnel
commit_author:
name: omrikiei
email: [email protected]
homepage: "https://github.com/omrikiei/ktunnel"
description: "Network tunneling tool for kubernetes."
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: auto
# Custom block for brew.
# Can be used to specify alternate downloads for devel or head releases.
# Default is empty.
custom_block: |
head "https://github.com/omrikiei/ktunnel.git"
test: |
system "#{bin}/program version"