-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
92 lines (83 loc) · 2.1 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
before:
hooks:
- go mod tidy
universal_binaries:
- replace: true
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.ShortCommit}}
- -X main.Date={{.CommitDate}}
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
use: github
sort: asc
filters:
exclude:
- '^docs:'
- typo
- Goreleaser
- Dockerfile
- CI
- '^test:'
sboms:
- artifacts: archive
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
formats:
- deb
- rpm
- apk
- archlinux
dependencies:
- "bash"
maintainer: "Peter Teich <[email protected]>"
vendor: "Peter Teich"
homepage: "https://github.com/pteich/clai"
description: "CLAI - AI Assistant for CLI Commands"
license: "MIT"
dockers:
- image_templates: ["ghcr.io/pteich/clai:{{ .Version }}"]
dockerfile: Dockerfile
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/pteich/clai
- --label=org.opencontainers.image.source=https://github.com/pteich/clai
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=MIT
brews:
- name: clai
homepage: https://github.com/pteich/clai
repository:
owner: pteich
name: homebrew-tap
release:
draft: true
replace_existing_draft: true
replace_existing_artifacts: true