-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
40 lines (35 loc) · 1022 Bytes
/
.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
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/corectl/
binary: corectl
ldflags:
- '-s -w'
- -X {{.ModulePath}}/pkg/version.Version={{.Tag}}
- -X {{.ModulePath}}/pkg/version.Commit={{.Commit}}
- -X {{.ModulePath}}/pkg/version.Date={{.Date}}
- -X {{.ModulePath}}/pkg/version.Arch={{.Arch}}
targets:
- linux_amd64
- linux_arm64
- darwin_amd64
- darwin_arm64
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
release:
github:
owner: coreeng
name: corectl
mode: append