-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy path.goreleaser.yml
More file actions
101 lines (90 loc) · 2.47 KB
/
Copy path.goreleaser.yml
File metadata and controls
101 lines (90 loc) · 2.47 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
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: pvecsictl
before:
hooks:
- go mod download
dist: bin
builds:
- dir: cmd/pvecsictl
binary: pvecsictl-{{ .Os }}-{{ .Arch }}
no_unique_dist_dir: true
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- formats:
- binary
name_template: "{{ .Binary }}"
checksum:
name_template: checksums.txt
algorithm: sha256
signs:
- artifacts: checksum
signature: "${artifact}.sigstore.json"
cmd: cosign
args:
- sign-blob
- "--yes"
- "--bundle=${signature}"
- "${artifact}"
output: true
snapshot:
version_template: edge
# dockers:
# - use: buildx
# image_templates:
# - ghcr.io/sergelogvinov/pvecsictl:{{ .Version }}-amd64
# goos: linux
# goarch: amd64
# build_flag_templates:
# - "--label=org.opencontainers.image.version={{.Version}}"
# - "--target=pvecsictl-goreleaser"
# - "--platform=linux/amd64"
# - use: buildx
# image_templates:
# - ghcr.io/sergelogvinov/pvecsictl:{{ .Version }}-arm64
# goos: linux
# goarch: arm64
# build_flag_templates:
# - "--label=org.opencontainers.image.version={{.Version}}"
# - "--target=pvecsictl-goreleaser"
# - "--platform=linux/arm64"
# docker_manifests:
# - name_template: ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }}
# image_templates:
# - ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }}-amd64
# - ghcr.io/sergelogvinov/{{ .ProjectName }}:{{ .Version }}-arm64
homebrew_casks:
- name: pvecsictl
directory: Casks
homepage: https://github.com/sergelogvinov/proxmox-csi-plugin
description: "Proxmox VE CSI Mutate tool"
license: Apache-2.0
# conflicts:
# - formula: pvecsictl
commit_author:
name: sergelogvinov
email: 5407715+sergelogvinov@users.noreply.github.com
repository:
owner: sergelogvinov
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TOKEN }}"
binaries:
- pvecsictl
custom_block: |
arch arm: "arm64", intel: "amd64"
os macos: "darwin", linux: "linux"
binary "pvecsictl-#{os}-#{arch}", target: "pvecsictl"
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/pvecsictl-darwin-#{arch}"]
end