forked from golang-templates/seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
37 lines (37 loc) · 1.03 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
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
archives:
- format_overrides:
- goos: windows
format: zip
dockers:
- image_templates:
- "ghcr.io/golang-templates/seed:latest"
- "ghcr.io/golang-templates/seed:{{ .Major }}"
- "ghcr.io/golang-templates/seed:{{ .Major }}.{{ .Minor }}"
- "ghcr.io/golang-templates/seed:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
build_flag_templates:
- "--pull"
# OCI annotations: https://github.com/opencontainers/image-spec/blob/main/annotations.md
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
release:
github:
name_template: "{{.Version}}"
prerelease: auto
mode: append
changelog:
skip: true