2025-04-25 11:44:59 +09:30
|
|
|
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:
|
2025-04-25 11:44:59 +09:30
|
|
|
- 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 }}_
|
2025-04-25 11:44:59 +09:30
|
|
|
{{- 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
|
2025-04-25 11:44:59 +09:30
|
|
|
formats: [zip]
|
2023-11-22 08:32:20 +10:30
|
|
|
|
2023-11-22 21:00:45 +10:30
|
|
|
changelog:
|
2025-04-25 11:44:59 +09:30
|
|
|
disable: true
|
2023-11-22 08:32:20 +10:30
|
|
|
|
|
|
|
dockers:
|
|
|
|
- image_templates:
|
2025-04-25 11:44:59 +09:30
|
|
|
- "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
|
|
|
|
2025-04-25 11:44:59 +09: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"
|