-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
142 lines (136 loc) · 3.86 KB
/
.goreleaser.yaml
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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- binary: cipherswarm-agent
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?bug(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Others
order: 999
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
github:
owner: "unclesp1d3r"
name: "CipherSwarmAgent"
prerelease: auto
include_meta: true
source:
enabled: true
universal_binaries:
- replace: true
nfpms:
- id: cipherswarm-agent
package_name: "{{.ProjectName}}"
vendor: "unclesp1d3r"
homepage: "https://unclesp1d3r.github.io"
maintainer: "unclesp1d3r <[email protected]>"
license: Apache 2.0
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
dependencies:
- 7zip
recommends:
- hashcat
priority: extra
changelog: changelog.yml
dockers:
- image_templates:
- "ghcr.io/unclesp1d3r/cipherswarmagent:{{ .Tag }}"
- "ghcr.io/unclesp1d3r/cipherswarmagent:v{{ .Major }}"
- "ghcr.io/unclesp1d3r/cipherswarmagent:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/unclesp1d3r/cipherswarmagent:latest"
use: buildx
dockerfile: Dockerfile.releaser
goarch: amd64
goos: linux
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source = 'https://github.com/unclesp1d3r/CipherSwarmAgent'"
- "--build-arg=branch=latest"
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/unclesp1d3r/cipherswarmagent:{{ .Tag }}-pocl"
- "ghcr.io/unclesp1d3r/cipherswarmagent:v{{ .Major }}-pocl"
- "ghcr.io/unclesp1d3r/cipherswarmagent:v{{ .Major }}.{{ .Minor }}-pocl"
- "ghcr.io/unclesp1d3r/cipherswarmagent:pocl"
use: buildx
dockerfile: Dockerfile.releaser
goarch: amd64
goos: linux
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source = 'https://github.com/unclesp1d3r/CipherSwarmAgent'"
- "--build-arg=branch=pocl"
- "--platform=linux/amd64"
milestones:
- repo:
owner: "unclesp1d3r"
name: CipherSwarmAgent
close: true
fail_on_error: false
sboms:
- artifacts: archive
notarize:
macos:
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
sign:
certificate: "{{.Env.MACOS_SIGN_P12}}"
password: "{{.Env.MACOS_SIGN_PASSWORD}}"
notarize:
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
key: "{{.Env.MACOS_NOTARY_KEY}}"
wait: true