This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.goreleaser.yml
117 lines (110 loc) · 2.61 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
---
project_name: kaytu
release:
github:
owner: "{{ .Env.REPOSITORY_OWNER }}"
name: "{{ .Env.REPOSITORY_NAME }}"
prerelease: auto
make_latest: "{{ .Env.GORELEASER_MAKE_LATEST}}"
checksum: {}
builds:
- id: linux
binary: kaytu
ldflags:
- -s -w -X github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}/pkg/version.VERSION={{ .Version }}
goos:
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
main: ./main.go
- id: darwin
binary: kaytu
ldflags:
- -s -w -X github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}/pkg/version.VERSION={{ .Version }}
goos:
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
main: ./main.go
- id: windows
binary: kaytu
ldflags:
- -s -w -X github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}/pkg/version.VERSION={{ .Version }}
goos:
- windows
goarch:
- amd64
env:
- CGO_ENABLED=0
main: ./main.go
archives:
- id: binary
format: binary
- id: windows
format: zip
builds: [windows]
- id: linux
format: tar.gz
builds: [linux]
- id: darwin
format: tar.gz
builds: [darwin]
brews:
- name: kaytu
homepage: https://github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}
repository:
owner: "{{ .Env.REPOSITORY_OWNER }}"
name: "{{ .Env.HOMEBREW_TAP }}"
commit_author:
name: "{{ .Env.REPOSITORY_OWNER }}"
email: "{{ .Env.OWNER_EMAIL }}"
ids:
- linux
- darwin
nfpms:
- package_name: "{{ .ProjectName }}"
maintainer: "{{ .Env.REPOSITORY_OWNER }} <{{ .Env.OWNER_EMAIL }}>"
homepage: https://github.com/{{ .Env.REPOSITORY_OWNER }}/{{ .Env.REPOSITORY_NAME }}
builds:
- linux
formats:
- deb
- rpm
#chocolateys:
# - name: kaytu
# ids:
# - kaytu
# package_source_url: https://github.com/kaytu-io/kaytu
# owners: Kaytu Inc.
# title: kaytu
# authors: Kaytu
# project_url: https://kaytu.io/
# tags: "kaytu"
# summary: Kaytu cli program
# description: Kaytu cli program
# dependencies:
# - id: nfpm
# version: 2.20.0
# api_key: "{{ .Env.CHOCOLATEY_API_KEY }}"
# source_repo: "https://push.chocolatey.org/"
# skip_publish: false
# goamd64: v1
# files:
# - src: "dist/windows_amd64/kaytu.exe"
# dest: "bin"
signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PWD }}"
args:
- "sign-blob"
- "--key=env://COSIGN_SECRET"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
artifacts: checksum