-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
38 lines (38 loc) · 1.22 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
project_name: meta
builds:
- env: [CGO_ENABLED=0]
main: ./cmd/app
ldflags:
- -s -w -X main.version={{ .Tag }}
- -extldflags "-static"
goos:
- linux
goarch:
- amd64
- arm64
dockers:
- image_templates:
- "ghcr.io/lvlcn-t/meta:latest"
- "ghcr.io/lvlcn-t/meta:{{ .Tag }}"
- "ghcr.io/lvlcn-t/meta:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/lvlcn-t/meta:v{{ .Major }}"
dockerfile: Dockerfile
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://lvlcn-t.dev
- --label=org.opencontainers.image.source=https://github.com/lvlcn-t/meta
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ .Timestamp }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses="MIT"
# nfpms:
# - maintainer: lvlcn-t <[email protected]>
# description: |-
# #
# homepage: https://github.com/lvlcn-t
# license: MIT
# formats:
# - deb
# - rpm
# - apk