gropple/.goreleaser.yaml

41 lines
837 B
YAML
Raw Normal View History

2023-11-22 08:32:20 +10:30
before:
hooks:
- go mod tidy
2023-11-26 17:00:46 +10:30
- go test ./...
# - golangci-lint run
2023-11-22 08:32:20 +10:30
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
2024-03-16 23:42:42 +10:30
{{- .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
format: zip
2023-11-22 21:00:45 +10:30
changelog:
skip: true
2023-11-22 08:32:20 +10:30
dockers:
- image_templates:
- "tardisx/gropple:{{ .Tag }}"
- "tardisx/gropple:v{{ .Major }}"
- "tardisx/gropple:v{{ .Major }}.{{ .Minor }}"
- "tardisx/gropple:latest"