-
Notifications
You must be signed in to change notification settings - Fork 231
/
.goreleaser.yml
151 lines (141 loc) · 4.43 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
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
project_name: ah
release:
name_template: "Artifact Hub {{ .Tag }}"
header: |
Please see the [changelog](https://artifacthub.io/packages/helm/artifact-hub/artifact-hub?modal=changelog) for more details.
changelog:
disable: true
snapshot:
name_template: "devel-{{ .ShortCommit }}"
builds:
- id: ah
binary: ah
main: ./cmd/ah
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- -X main.version={{ .Version }}
- -X main.gitCommit={{ .FullCommit }}
archives:
- id: ah
files:
- LICENSE
format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macos{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}'
dockers:
- dockerfile: cmd/ah/Dockerfile
image_templates:
- "artifacthub/ah:{{ .Tag }}"
- "artifacthub/ah:latest"
- "public.ecr.aws/artifacthub/ah:{{ .Tag }}"
- "public.ecr.aws/artifacthub/ah:latest"
build_flag_templates:
- "--build-arg=VERSION={{ .Version }}"
- "--build-arg=GIT_COMMIT={{ .FullCommit }}"
- "--label=org.opencontainers.image.description=Artifact Hub command line tool"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .CommitDate }}"
- "--label=org.opencontainers.image.documentation=https://artifacthub.io/docs/topics/cli"
- "--label=org.opencontainers.image.source=https://github.com/artifacthub/hub/tree/{{ .FullCommit }}/cmd/ah"
- "--label=org.opencontainers.image.vendor=Artifact Hub"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/artifacthub/hub/{{ .FullCommit }}/docs/cli.md"
- '--label=io.artifacthub.package.maintainers=[{"name":"Artifact Hub maintainers","email":"[email protected]"}]'
- "--label=io.artifacthub.package.logo-url=https://raw.githubusercontent.com/artifacthub/hub/master/docs/logo/logo.svg"
- "--label=io.artifacthub.package.keywords=artifact hub,cli,lint"
- "--label=io.artifacthub.package.license=Apache-2.0"
- "--label=io.artifacthub.package.alternative-locations=public.ecr.aws/artifacthub/ah:{{ .Tag }}"
extra_files:
- go.mod
- go.sum
- cmd/ah
- internal
- dockerfile: database/migrations/Dockerfile
image_templates:
- "artifacthub/db-migrator:{{ .Tag }}"
- "artifacthub/db-migrator:latest"
- "public.ecr.aws/artifacthub/db-migrator:{{ .Tag }}"
- "public.ecr.aws/artifacthub/db-migrator:latest"
extra_files:
- database/migrations
- dockerfile: cmd/hub/Dockerfile
image_templates:
- "artifacthub/hub:{{ .Tag }}"
- "artifacthub/hub:latest"
- "public.ecr.aws/artifacthub/hub:{{ .Tag }}"
- "public.ecr.aws/artifacthub/hub:latest"
extra_files:
- go.mod
- go.sum
- cmd/hub
- docs
- internal
- scripts
- web
- widget
- dockerfile: cmd/scanner/Dockerfile
image_templates:
- "artifacthub/scanner:{{ .Tag }}"
- "artifacthub/scanner:latest"
- "public.ecr.aws/artifacthub/scanner:{{ .Tag }}"
- "public.ecr.aws/artifacthub/scanner:latest"
extra_files:
- go.mod
- go.sum
- cmd/scanner
- internal
- dockerfile: cmd/tracker/Dockerfile
image_templates:
- "artifacthub/tracker:{{ .Tag }}"
- "artifacthub/tracker:latest"
- "public.ecr.aws/artifacthub/tracker:{{ .Tag }}"
- "public.ecr.aws/artifacthub/tracker:latest"
extra_files:
- go.mod
- go.sum
- cmd/tracker
- internal
- ml
brews:
- description: Artifact Hub command line tool
homepage: https://github.com/artifacthub/hub
license: Apache-2.0
repository:
owner: artifacthub
name: homebrew-cmd
commit_author:
name: artifacthubio
email: [email protected]
scoops:
- description: Artifact Hub command line tool
homepage: https://github.com/artifacthub/hub
license: Apache-2.0
repository:
owner: artifacthub
name: scoop-cmd
commit_author:
name: artifacthubio
email: [email protected]
signs:
- artifacts: checksum
args:
[
"--batch",
"-u",
"{{ .Env.GPG_FINGERPRINT }}",
"--output",
"${signature}",
"--detach-sign",
"${artifact}",
]
sboms:
- artifacts: archive