generated from octomation/go-service
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
115 lines (107 loc) · 3.35 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
project_name: sparkle
archives:
- id: sparkle
files:
- LICENSE
- PATENTS
format: tar.gz
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
brews:
- name: sparkle
commit_author:
name: Kamil Samigullin
email: [email protected]
description: |
✨ Sparkle service. The personal development framework
and Personal Knowledge Management platform.
folder: Formula
homepage: https://sparkle.wiki/
repository:
owner: octolab
name: homebrew-tap
install: |
bin.install "sparkle"
output = Utils.popen_read("#{bin}/sparkle completion bash")
(bash_completion/"sparkle").write output
output = Utils.popen_read("#{bin}/sparkle completion fish")
(fish_completion/"sparkle.fish").write output
output = Utils.popen_read("#{bin}/sparkle completion zsh")
(zsh_completion/"_sparkle").write output
prefix.install_metafiles
test: |
system "#{bin}/sparkle version"
builds:
- id: sparkle
binary: sparkle
env:
- CGO_ENABLED=0
flags:
- -trimpath
goarch:
- amd64
- arm64
goos:
- darwin
- linux
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
main: .
checksum: { name_template: checksums.txt }
dockers:
- id: service-linux-amd64
goos: linux
goarch: amd64
ids:
- sparkle
image_templates:
- 'ghcr.io/withsparkle/service:{{.Tag}}-amd64'
- 'ghcr.io/withsparkle/service:v{{.Major}}-amd64'
- 'ghcr.io/withsparkle/service:v{{.Major}}.{{.Minor}}-amd64'
use: buildx
build_flag_templates:
- '--pull'
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
- '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.version={{.Version}}'
- '--platform=linux/amd64'
extra_files:
- LICENSE
- id: service-linux-arm64
goos: linux
goarch: arm64
ids:
- sparkle
image_templates:
- 'ghcr.io/withsparkle/service:{{.Tag}}-arm64'
- 'ghcr.io/withsparkle/service:v{{.Major}}-arm64'
- 'ghcr.io/withsparkle/service:v{{.Major}}.{{.Minor}}-arm64'
use: buildx
build_flag_templates:
- '--pull'
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
- '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.version={{.Version}}'
- '--platform=linux/arm64'
extra_files:
- LICENSE
docker_manifests:
- name_template: 'ghcr.io/withsparkle/service:latest'
image_templates:
- 'ghcr.io/withsparkle/service:{{.Tag}}-amd64'
- 'ghcr.io/withsparkle/service:{{.Tag}}-arm64'
- name_template: 'ghcr.io/withsparkle/service:{{.Tag}}'
image_templates:
- 'ghcr.io/withsparkle/service:{{.Tag}}-amd64'
- 'ghcr.io/withsparkle/service:{{.Tag}}-arm64'
- name_template: 'ghcr.io/withsparkle/service:v{{.Major}}'
image_templates:
- 'ghcr.io/withsparkle/service:v{{.Major}}-amd64'
- 'ghcr.io/withsparkle/service:v{{.Major}}-arm64'
- name_template: 'ghcr.io/withsparkle/service:v{{.Major}}.{{.Minor}}'
image_templates:
- 'ghcr.io/withsparkle/service:v{{.Major}}.{{.Minor}}-amd64'
- 'ghcr.io/withsparkle/service:v{{.Major}}.{{.Minor}}-arm64'
release:
github:
owner: withsparkle
name: service