-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
64 lines (59 loc) · 1.5 KB
/
.goreleaser.yaml
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
# see https://goreleaser.com
version: 2
before:
hooks:
- go mod tidy
builds:
- main: ./internal/main.go
env:
- CGO_ENABLED=0
# https://pkg.go.dev/cmd/link
ldflags:
# remove symbol table and debug information
- -s -w
- -X github.com/hckops/hckctl/internal/command/version.release={{ .Version }}
- -X github.com/hckops/hckctl/internal/command/version.commit={{ .ShortCommit }}
- -X github.com/hckops/hckctl/internal/command/version.timestamp={{ .Date }}
goos:
- darwin
- linux
- windows
ignore:
- goos: darwin
goarch: 386
archives:
- name_template: >-
{{ .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
# overrides default to include only the binary in the archive
files:
- none*
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
brews:
- name: hckctl
repository:
owner: hckops
name: homebrew-tap
commit_author:
name: hckbot
email: [email protected]
directory: Formula
homepage: https://github.com/hckops/hckctl
description: "The declarative HaCKing Tool"
skip_upload: false
dependencies:
- name: docker
type: optional
- name: kubectl
type: optional
test: |-
hckctl version