-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yaml
96 lines (81 loc) · 2.14 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
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
project_name: hubctl
before:
hooks:
- go mod download
dist: bin
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/hub
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
ldflags:
- -s
- -w
- -X 'github.com/epam/hubctl/cmd/hub/util.ref={{ .Tag }}'
- -X 'github.com/epam/hubctl/cmd/hub/util.commit={{ .ShortCommit }}'
- -X 'github.com/epam/hubctl/cmd/hub/util.buildAt={{ time "2006.01.02 15:04:05 MST" }}'
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
filters:
exclude:
- "(?i)readme"
- "(?i)^[typo]{4}"
- "upd"
brews:
- name: hubctl
tap:
owner: epam
name: homebrew-hubctl
branch: main
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: therealspaceship
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Version }}"
folder: Formula
homepage: "https://hubctl.io/"
description: "Hub CTL is stack composition and lifecycle tool."
license: "MPL-2.0"
custom_block: |
head "https://github.com/epam/hubctl"
caveats: |
hubctl version
hubctl help
hubctl elaborate hub.yaml params.yaml -o hub.yaml.elaborate
hubctl deploy hub.yaml.elaborate -e NAME=stage
dependencies:
- name: jq
- name: yq
- name: npm
type: optional
test: |
output = shell_output("#{bin}/hubctl version").chomp
assert output.start_with?("Hub CTL git ")
system "false"
post_install: |
hub_home = Pathname.new "#{Dir.home}/.hub"
unless hub_home.exist?
system "#{Formula["hub"].opt_bin}/hubctl", "extensions", "install"
end