Repository navigation
Expand file tree
/
Copy path.goreleaser.yml
More file actions
150 lines (133 loc) · 3.67 KB
/
Copy path.goreleaser.yml
File metadata and controls
150 lines (133 loc) · 3.67 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: 2
before:
hooks:
# Build the frontend so it's embedded in the Go binary.
- make web
builds:
- id: agent-vault
binary: agent-vault
main: .
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
- -X github.com/Infisical/agent-vault/cmd.version={{.Version}}
- -X github.com/Infisical/agent-vault/cmd.commit={{.ShortCommit}}
- -X github.com/Infisical/agent-vault/cmd.date={{.Date}}
- -X github.com/Infisical/agent-vault/cmd.posthogAPIKey={{ .Env.POSTHOG_API_KEY }}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- id: default
formats:
- tar.gz
name_template: "agent-vault_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE*
- README*
checksum:
name_template: "checksums.txt"
algorithm: sha256
sboms:
- artifacts: archive
signs:
- cmd: cosign
artifacts: checksum
output: true
args:
- "sign-blob"
- "--yes"
- "--bundle=${signature}"
- "${artifact}"
docker_signs:
- cmd: cosign
artifacts: manifests
output: true
args:
- "sign"
- "--yes"
- "${artifact}@${digest}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- "^chore:"
# TODO: Re-enable once GO_RELEASER_GITHUB_TOKEN has access to Infisical/homebrew-get-cli
# brews:
# - repository:
# owner: Infisical
# name: homebrew-get-cli
# token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
# directory: Formula
# homepage: "https://github.com/Infisical/agent-vault"
# description: "Open-source credential broker for AI agents"
# license: "MIT"
# install: |
# bin.install "agent-vault"
# test: |
# system "#{bin}/agent-vault", "version"
dockers:
- id: amd64
goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
use: buildx
image_templates:
- "infisical/agent-vault:{{ .Version }}-amd64"
build_flag_templates:
- "--platform=linux/amd64"
extra_files:
- scripts/docker-entrypoint.sh
- id: arm64
goos: linux
goarch: arm64
dockerfile: Dockerfile.goreleaser
use: buildx
image_templates:
- "infisical/agent-vault:{{ .Version }}-arm64"
build_flag_templates:
- "--platform=linux/arm64"
extra_files:
- scripts/docker-entrypoint.sh
docker_manifests:
- name_template: "infisical/agent-vault:{{ .Version }}"
image_templates:
- "infisical/agent-vault:{{ .Version }}-amd64"
- "infisical/agent-vault:{{ .Version }}-arm64"
- name_template: "infisical/agent-vault:latest"
image_templates:
- "infisical/agent-vault:{{ .Version }}-amd64"
- "infisical/agent-vault:{{ .Version }}-arm64"
release:
github:
owner: Infisical
name: agent-vault
draft: false
prerelease: auto
make_latest: true
footer: |
## Verify
```bash
# Verify checksum (portable across macOS and Linux)
shasum -a 256 --ignore-missing -c checksums.txt
# Verify signature (requires cosign v2+)
cosign verify-blob \
--bundle checksums.txt.sig \
--certificate-identity-regexp "^https://github\.com/Infisical/agent-vault/\.github/workflows/release\.yml@refs/tags/" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
checksums.txt
# Verify Docker image signature (requires cosign)
cosign verify infisical/agent-vault:{{ .Version }} \
--certificate-identity-regexp "^https://github\.com/Infisical/agent-vault/\.github/workflows/release\.yml@refs/tags/" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com"
```