forked from sargassum-world/pslive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
35 lines (35 loc) · 959 Bytes
/
.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
before:
hooks:
- go mod download
builds:
- id: "pslive"
main: ./cmd/pslive
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
archives:
- format_overrides:
- goos: windows
format: zip
release:
github:
prerelease: auto
dockers:
-
image_templates:
- "ghcr.io/sargassum-world/{{ .ProjectName }}:latest"
- "ghcr.io/sargassum-world/{{ .ProjectName }}:{{ .Major }}"
- "ghcr.io/sargassum-world/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}"
- "ghcr.io/sargassum-world/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
build_flag_templates:
- "--pull"
- "--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}}"