forked from txn2/kubefwd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
136 lines (128 loc) · 3.2 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
env:
- GO111MODULE=on
- GOPROXY=https://gocenter.io
before:
hooks:
- go mod download
builds:
- id: kubefwd
main: ./cmd/kubefwd/kubefwd.go
binary: kubefwd
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: windows
goarch: arm64
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=0
flags:
- -trimpath
- -tags=netgo
- -a
- -v
ldflags: -s -w -X main.Version={{.Version}}
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- go mod tidy
dockers:
-
goos: linux
goarch: amd64
goarm: ''
dockerfile: Dockerfile.alpine
ids:
- kubefwd
image_templates:
- "txn2/kubefwd:latest"
- "txn2/kubefwd:{{ .Tag }}"
- "txn2/kubefwd:v{{ .Major }}"
- "txn2/kubefwd:amd64-{{ .Tag }}"
- "txn2/kubefwd:amd64-v{{ .Major }}"
- "txn2/kubefwd:latest_alpine-3"
- "txn2/kubefwd:{{ .Tag }}_alpine-3"
- "txn2/kubefwd:v{{ .Major }}_alpine-3"
- "txn2/kubefwd:amd64-{{ .Tag }}_alpine-3"
- "txn2/kubefwd:amd64-v{{ .Major }}_alpine-3"
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
-
goos: linux
goarch: amd64
goarm: ''
dockerfile: Dockerfile.ubuntu
ids:
- kubefwd
image_templates:
- "txn2/kubefwd:latest_ubuntu-20.04"
- "txn2/kubefwd:{{ .Tag }}_ubuntu-20.04"
- "txn2/kubefwd:v{{ .Major }}_ubuntu-20.04"
- "txn2/kubefwd:amd64-{{ .Tag }}_ubuntu-20.04"
- "txn2/kubefwd:amd64-v{{ .Major }}_ubuntu-20.04"
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/txn2/kubefwd
description: Kubernetes bulk port forwarding utility.
maintainer: Craig Johnston https://twitter.com/cjimti
license: Apache 2.0
vendor: https://github.com/txn2
formats:
- apk
- deb
- rpm
recommends:
- kubectl
release:
github:
owner: txn2
name: kubefwd
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
brews:
- name: kubefwd
tap:
owner: txn2
name: homebrew-tap
commit_author:
name: Craig Johnston
email: [email protected]
folder: Formula
homepage: https://github.com/txn2/kubefwd
description: "Kubernetes bulk port forwarding utility."
skip_upload: false
dependencies:
- name: kubectl
type: optional
test: |-
kubefwd version