-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
24 lines (24 loc) · 1.08 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
archives:
- format: binary
name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
builds:
- hooks:
post:
- upx --best --lzma "{{ .Path }}"
checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
dockers:
- dockerfile: Dockerfile.release
image_templates:
- "ghcr.io/devopsbox-io/{{.ProjectName}}:{{ .Tag }}"
- "ghcr.io/devopsbox-io/{{.ProjectName}}:latest"
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/devopsbox-io/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/devopsbox-io/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0