-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
72 lines (64 loc) · 1.55 KB
/
.goreleaser.yaml
File metadata and controls
72 lines (64 loc) · 1.55 KB
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
checksum:
name_template: "checksums.txt"
docker_digest:
name_template: "digests.txt"
builds:
- ldflags: "-s -w"
flags:
- -trimpath
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
docker_signs:
- ids:
- dockers_v2
cmd: cosign
args:
- "sign"
- "--yes"
- "${artifact}"
env:
- COSIGN_YES=true
dockers_v2:
- id: dockers_v2
images:
- 'ghcr.io/{{ envOrDefault "GITHUB_REPOSITORY_OWNER" "cedws" }}/{{ .ProjectName }}'
tags:
- "{{ .Tag }}"
- "v{{ .Major }}"
- "latest"
platforms:
- linux/amd64
- linux/arm64
build_args:
PROJECT_NAME: "{{ .ProjectName }}"
flags:
- "--pull"
scoops:
- skip_upload: '{{ eq (envOrDefault "REPO_VISIBILITY" "private") "private" }}'
repository:
name: scoop-bucket
owner: '{{ envOrDefault "GITHUB_REPOSITORY_OWNER" "cedws" }}'
token: "{{ .Env.SCOOP_BUCKET_PUSH_TOKEN }}"
homebrew_casks:
- skip_upload: '{{ eq (envOrDefault "REPO_VISIBILITY" "private") "private" }}'
repository:
name: homebrew-tap
owner: '{{ envOrDefault "GITHUB_REPOSITORY_OWNER" "cedws" }}'
token: "{{ .Env.HOMEBREW_TAP_PUSH_TOKEN }}"
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/{{ .ProjectName }}"]
end
changelog:
use: github