Updated .goreleaser

This commit is contained in:
Winni Neessen 2024-03-14 00:29:42 +01:00
parent ac53637f86
commit dbc247a859

View file

@ -34,6 +34,7 @@ builds:
- mips64le - mips64le
goarm: goarm:
- 6 - 6
- 7
goamd64: goamd64:
- v1 - v1
main: ./cmd/apg main: ./cmd/apg
@ -74,10 +75,10 @@ nfpms:
{{- .ConventionalExtension -}} {{- .ConventionalExtension -}}
dmg: dmg:
- replace: true - replace: false
universal_binaries: universal_binaries:
- replace: true - replace: false
report_sizes: true report_sizes: true
@ -97,7 +98,26 @@ gomod:
mod: mod mod: mod
dockers: dockers:
- image_templates: - id: linux_amd64
goos: linux
goarch: amd64
image_templates:
- "wneessen/apg-go:{{ .Tag }}"
- "wneessen/apg-go:v{{ .Major }}"
- "wneessen/apg-go:v{{ .Major }}.{{ .Minor }}"
- "wneessen/apg-go:latest"
build_flag_templates:
- "--pull"
- "--network=host"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- id: darwin_arm64
goos: darwin
goarch: arm64
goarm: 7
image_templates:
- "wneessen/apg-go:{{ .Tag }}" - "wneessen/apg-go:{{ .Tag }}"
- "wneessen/apg-go:v{{ .Major }}" - "wneessen/apg-go:v{{ .Major }}"
- "wneessen/apg-go:v{{ .Major }}.{{ .Minor }}" - "wneessen/apg-go:v{{ .Major }}.{{ .Minor }}"
@ -113,4 +133,4 @@ dockers:
docker_signs: docker_signs:
- artifacts: all - artifacts: all
stdin: '{{ .Env.COSIGN_PWD }}' stdin: '{{ .Env.COSIGN_PWD }}'
output: true output: true