-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yml
More file actions
324 lines (272 loc) · 8.55 KB
/
Copy path.goreleaser.yml
File metadata and controls
324 lines (272 loc) · 8.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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
# GoReleaser configuration for Pass-CLI
# https://goreleaser.com
version: 2
# Removed before hooks - CI already runs tests and linting
# before:
# hooks:
# - go test ./...
# - golangci-lint run
builds:
- id: pass-cli
main: .
binary: pass-cli
# Version information injected at build time
ldflags:
- -s -w
- -X github.com/arimxyer/pass-cli/cmd.version={{.Version}}
- -X github.com/arimxyer/pass-cli/cmd.commit={{.ShortCommit}}
- -X github.com/arimxyer/pass-cli/cmd.date={{.Date}}
# Target platforms
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
# Platform-specific configurations
ignore:
# No known incompatibilities, but can add here if needed
# - goos: windows
# goarch: arm64
# Build tags for conditional compilation
tags:
- netgo
# Environment variables for build
env:
- CGO_ENABLED=0
# Flags passed to go build
flags:
- -trimpath
- -mod=readonly
archives:
- id: default
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# Files to include in archive (essential docs only)
# Full documentation available at https://reyamira.github.io/pass-cli/
files:
- LICENSE*
- README*
- CHANGELOG*
checksum:
name_template: "checksums.txt"
algorithm: sha256
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- "^ci:"
- "Merge pull request"
- "Merge branch"
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug Fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: "Security"
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 2
- title: "Performance"
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
order: 3
- title: Others
order: 999
release:
github:
owner: reyamira
name: pass-cli
# Release name format
name_template: "v{{.Version}}"
# Create draft release (can be published manually)
draft: false
# Mark as prerelease if version contains alpha, beta, rc
prerelease: auto
# Include release notes (disabled - discussions not enabled)
# discussion_category_name: General
# Header and footer for release notes
header: |
## Pass-CLI {{.Version}}
A secure, cross-platform CLI password and API key manager for developers.
### Installation
#### Homebrew (macOS/Linux)
```bash
brew install reyamira/tap/pass-cli
```
#### Scoop (Windows)
```powershell
scoop bucket add reyamira https://github.com/reyamira/scoop-bucket
scoop install pass-cli
```
#### Manual Installation
Download the appropriate archive for your platform below, extract it, and add the binary to your PATH.
footer: |
### Verification
All binaries are checksummed and can be verified:
```bash
sha256sum -c checksums.txt
```
### Full Changelog
See the full changelog at https://github.com/reyamira/pass-cli/blob/main/CHANGELOG.md
# Universal Binaries for macOS (combines amd64 and arm64)
universal_binaries:
- id: pass-cli-darwin
replace: true
name_template: "pass-cli"
ids:
- pass-cli
# Announce release (can configure Twitter, Discord, Slack, etc.)
# announce:
# twitter:
# enabled: false
# discord:
# enabled: false
# Metadata for package managers
metadata:
mod_timestamp: "{{ .CommitTimestamp }}"
# Signing (optional, for macOS binaries)
# signs:
# - artifacts: checksum
# args:
# - "--batch"
# - "--local-user"
# - "{{ .Env.GPG_FINGERPRINT }}"
# - "--output"
# - "${signature}"
# - "--detach-sign"
# - "${artifact}"
# Docker images (optional)
# dockers:
# - image_templates:
# - "ghcr.io/username/pass-cli:{{ .Tag }}"
# - "ghcr.io/username/pass-cli:v{{ .Major }}"
# - "ghcr.io/username/pass-cli:v{{ .Major }}.{{ .Minor }}"
# - "ghcr.io/username/pass-cli:latest"
# dockerfile: Dockerfile
# use: buildx
# build_flag_templates:
# - "--platform=linux/amd64"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.title={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# SBOMs (Software Bill of Materials)
# Disabled: syft not available in GitHub Actions environment
# TODO: Add syft installation step or use goreleaser-action with syft pre-installed
# sboms:
# - id: archive
# artifacts: archive
# - id: binary
# artifacts: binary
# Snap packages for universal Linux distribution
# Disabled: snapcraft not available in GitHub Actions environment
# TODO: Add snapcraft installation step or use docker-based build
# snapcrafts:
# - id: pass-cli-snap
# name: pass-cli
#
# summary: Secure CLI password and API key manager for developers
# description: |
# Pass-CLI is a secure, cross-platform command-line password and API key manager
# designed specifically for developers. It provides encrypted vault storage using
# AES-256-GCM encryption, optional keychain integration for automatic unlocking,
# and clipboard integration for secure credential access.
#
# Features:
# - Strong encryption with AES-256-GCM and PBKDF2 key derivation
# - Cross-platform keychain integration
# - Secure clipboard integration with auto-clear
# - Script-friendly output formats
# - Encrypted backup and restore
# - Password masking with visual feedback
#
# # Snap grade (stable or devel)
# grade: stable
#
# # Confinement level (strict, classic, or devmode)
# confinement: strict
#
# # License
# license: MIT
#
# # Base snap
# base: core22
#
# # App configuration
# apps:
# pass-cli:
# command: pass-cli
# plugs:
# - home
# - network
# - password-manager-service
#
# # Publish to Snap Store
# publish: false
# Homebrew tap (automated formula creation and updates)
brews:
- name: pass-cli
# Tap repository (GoReleaser will auto-create/update the formula)
repository:
owner: reyamira
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
# Where to place the formula in the tap repo
directory: Formula
# Metadata
homepage: https://github.com/reyamira/pass-cli
description: "Secure, cross-platform CLI password and API key manager for developers"
license: MIT
# Installation details
install: |
bin.install "pass-cli"
# Test block (Homebrew requires this)
test: |
system "#{bin}/pass-cli", "version"
# Caveats shown after installation
caveats: |
Pass-CLI: Secure password manager with TUI and CLI interfaces
First-time users: Run `pass-cli` (no arguments) for guided setup.
Quick start:
pass-cli - Launch interactive TUI
pass-cli init - Initialize vault manually
pass-cli doctor - Run health checks
Features:
• Interactive TUI for visual management
• Keychain integration: pass-cli keychain enable
• Usage tracking and audit logging
Vault location: ~/.pass-cli/vault.enc
Complete guide: https://github.com/reyamira/pass-cli/blob/main/docs/GETTING_STARTED.md
# Scoop bucket (automated manifest creation and updates)
scoops:
- name: pass-cli
# Bucket repository (GoReleaser will auto-create/update the manifest)
repository:
owner: reyamira
name: scoop-bucket
token: "{{ .Env.SCOOP_BUCKET_TOKEN }}"
# Where to place the manifest in the bucket repo
directory: bucket
# Metadata
homepage: https://github.com/reyamira/pass-cli
description: "Secure, cross-platform CLI password and API key manager for developers"
license: MIT
# Post-install message (array of PowerShell commands)
post_install:
- "Write-Host 'Pass-CLI installed! First-time: Run `pass-cli` for guided setup.' -ForegroundColor Green"
- "Write-Host 'TUI: pass-cli | Health check: pass-cli doctor | Enable keychain: pass-cli keychain enable' -ForegroundColor Cyan"
- "Write-Host 'Guide: https://github.com/reyamira/pass-cli/blob/main/docs/GETTING_STARTED.md' -ForegroundColor Yellow"