gropple/.goreleaser.yaml

54 lines
1.1 KiB
YAML
Raw Normal View History

version: 2
2023-11-22 08:32:20 +10:30
before:
hooks:
- go mod tidy
2023-11-26 17:00:46 +10:30
- go test ./...
2023-11-22 08:32:20 +10:30
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- formats: [tar.gz]
2023-11-22 08:32:20 +10:30
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
2023-11-22 08:32:20 +10:30
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
formats: [zip]
2023-11-22 08:32:20 +10:30
2023-11-22 21:00:45 +10:30
changelog:
disable: true
2023-11-22 08:32:20 +10:30
dockers:
- image_templates:
- "tardisx/gropple:{{ .Tag }}-amd64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- image_templates:
- "tardisx/gropple:{{ .Tag }}-arm64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
goarch: arm64
2023-11-22 08:32:20 +10:30
docker_manifests:
- name_template: "tardisx/gropple:{{ .Tag }}"
image_templates:
2025-04-25 11:56:38 +09:30
- "tardisx/gropple:{{ .Tag }}-amd64"
- "tardisx/gropple:{{ .Tag }}-arm64"