-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
69 lines (64 loc) · 1.82 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: cloudexec
builds:
- ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Commit={{.FullCommit}}
- -X main.Date={{.CommitDate}}
env:
- CGO_ENABLED=0
- GOFLAGS=-mod=readonly -trimpath
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
main: ./cmd/cloudexec/
# ensures mod timestamp to be the commit timestamp
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}-
{{- .Version }}-
{{- .Os }}-
{{- .Arch }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
checksum:
name_template: checksums.txt
signs:
- cmd: cosign
signature: ${artifact}.bundle
args: [sign-blob, --yes, "--bundle=${signature}", "${artifact}"]
artifacts: all
release:
github:
owner: crytic
name: cloudexec
brews:
- repository:
owner: trailofbits
name: homebrew-tools
git:
url: [email protected]:trailofbits/homebrew-tools.git
private_key: "{{ .Env.PRIVATE_KEY }}"
homepage: https://github.com/crytic/cloudexec
folder: Formula
install: |-
bin.install "cloudexec"
test: |
system "#{bin}/cloudexec version"
caveats: |
CloudExec can optionally use the 1Password CLI for secure credential management.
To use this feature, you need to have the 1Password CLI installed.
To install the 1Password CLI, run:
brew install --cask 1password-cli
For more information on using 1Password CLI with CloudExec, visit:
https://github.com/crytic/cloudexec#configure-credentials