-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.goreleaser.yml
More file actions
56 lines (56 loc) · 1.33 KB
/
Copy path.goreleaser.yml
File metadata and controls
56 lines (56 loc) · 1.33 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{ .Version }} -X main.commit={{ .ShortCommit }}
goos:
- linux
goarch:
- amd64
- arm64
archives:
- formats:
- tar.gz
files:
- LICENSE
- README.md
sboms:
- id: archive
artifacts: archive
checksum:
name_template: checksums.txt
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- '^chore'
- '^test'
- '^wip'
docker_digest:
name_template: "digests.txt"
dockers_v2:
- images:
- "jimschubert/labeler-action"
tags:
- "latest"
- "{{ .Tag }}"
- "v{{ .Major }}.{{ .Minor }}"
- "v{{ .Major }}"
dockerfile: release.Dockerfile
labels:
"org.opencontainers.image.created": "{{ .Date }}"
"org.opencontainers.image.name": "{{ .ProjectName }}"
"org.opencontainers.image.revision": "{{ .FullCommit }}"
"org.opencontainers.image.version": "{{ .Version }}"
"org.opencontainers.image.source": "https://github.com/jimschubert/labeler-action"
"org.opencontainers.image.licenses": "Apache-2.0"
build_args:
APP_NAME: "{{ .ProjectName }}"