2024-01-01 19:09:35 +08:00
|
|
|
# This is an example .goreleaser.yml file with some sensible defaults.
|
|
|
|
|
# Make sure to check the documentation at https://goreleaser.com
|
|
|
|
|
before:
|
|
|
|
|
hooks:
|
|
|
|
|
# You may remove this if you don't use go modules.
|
|
|
|
|
- go mod tidy
|
|
|
|
|
# you may remove this if you don't need go generate
|
|
|
|
|
- go generate ./...
|
2024-01-27 22:11:27 +08:00
|
|
|
|
2024-01-01 19:09:35 +08:00
|
|
|
builds:
|
2024-01-27 22:11:27 +08:00
|
|
|
- env: [ CGO_ENABLED=0 ]
|
2024-01-01 19:09:35 +08:00
|
|
|
goos:
|
|
|
|
|
- linux
|
|
|
|
|
- windows
|
|
|
|
|
- darwin
|
2025-01-22 21:10:32 +08:00
|
|
|
- freebsd
|
|
|
|
|
- openbsd
|
2024-04-29 18:51:39 +08:00
|
|
|
goarch:
|
|
|
|
|
- amd64
|
|
|
|
|
- arm64
|
2026-01-25 10:29:44 +08:00
|
|
|
- arm
|
|
|
|
|
goarm:
|
|
|
|
|
- 7
|
2026-01-25 10:45:10 +08:00
|
|
|
ignore:
|
|
|
|
|
- goos: windows
|
|
|
|
|
goarch: arm
|
|
|
|
|
- goos: darwin
|
|
|
|
|
goarch: arm
|
|
|
|
|
- goos: freebsd
|
|
|
|
|
goarch: arm
|
|
|
|
|
- goos: openbsd
|
|
|
|
|
goarch: arm
|
2024-01-27 22:11:27 +08:00
|
|
|
id: "{{ .Env.CUSTOM_PROJ_NAME }}"
|
|
|
|
|
binary: "{{ .Env.CUSTOM_PROJ_NAME }}"
|
|
|
|
|
|
|
|
|
|
dockers:
|
2025-09-12 19:38:38 +08:00
|
|
|
- image_templates:
|
|
|
|
|
- "docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-amd64"
|
|
|
|
|
- "ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-amd64"
|
2024-01-27 22:11:27 +08:00
|
|
|
dockerfile: Dockerfile
|
2024-01-27 22:38:02 +08:00
|
|
|
extra_files:
|
|
|
|
|
- LICENSE
|
|
|
|
|
- README.md
|
2024-01-27 22:11:27 +08:00
|
|
|
use: buildx
|
|
|
|
|
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/engigu/{{ .ProjectName }}
|
|
|
|
|
- --label=org.opencontainers.image.source=https://github.com/engigu/{{ .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=MIT
|
2025-09-12 19:38:38 +08:00
|
|
|
- image_templates:
|
|
|
|
|
- "docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-arm64v8"
|
|
|
|
|
- "ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-arm64v8"
|
2024-01-27 22:11:27 +08:00
|
|
|
goarch: arm64
|
|
|
|
|
dockerfile: Dockerfile
|
2024-01-27 22:38:02 +08:00
|
|
|
extra_files:
|
|
|
|
|
- LICENSE
|
|
|
|
|
- README.md
|
2024-01-27 22:11:27 +08:00
|
|
|
use: buildx
|
|
|
|
|
build_flag_templates:
|
|
|
|
|
- --platform=linux/arm64/v8
|
|
|
|
|
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
|
|
|
|
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
|
|
|
|
- --label=org.opencontainers.image.url=https://github.com/engigu/{{ .ProjectName }}
|
|
|
|
|
- --label=org.opencontainers.image.source=https://github.com/engigu/{{ .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=MIT
|
2026-01-26 11:16:32 +08:00
|
|
|
- image_templates:
|
|
|
|
|
- "docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-armv7"
|
|
|
|
|
- "ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-armv7"
|
|
|
|
|
goarch: arm
|
|
|
|
|
goarm: 7
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
extra_files:
|
|
|
|
|
- LICENSE
|
|
|
|
|
- README.md
|
|
|
|
|
use: buildx
|
|
|
|
|
build_flag_templates:
|
|
|
|
|
- --platform=linux/arm/v7
|
|
|
|
|
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
|
|
|
|
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
|
|
|
|
- --label=org.opencontainers.image.url=https://github.com/engigu/{{ .ProjectName }}
|
|
|
|
|
- --label=org.opencontainers.image.source=https://github.com/engigu/{{ .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=MIT
|
2024-01-27 22:11:27 +08:00
|
|
|
docker_manifests:
|
|
|
|
|
- name_template: docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}
|
|
|
|
|
image_templates:
|
|
|
|
|
- docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-amd64
|
|
|
|
|
- docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-arm64v8
|
2026-01-26 11:16:32 +08:00
|
|
|
- docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-armv7
|
2024-01-27 22:11:27 +08:00
|
|
|
- name_template: docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:latest
|
|
|
|
|
image_templates:
|
|
|
|
|
- docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-amd64
|
|
|
|
|
- docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-arm64v8
|
2026-01-26 11:16:32 +08:00
|
|
|
- docker.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-armv7
|
2025-09-12 19:38:38 +08:00
|
|
|
- name_template: ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}
|
|
|
|
|
image_templates:
|
|
|
|
|
- ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-amd64
|
|
|
|
|
- ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-arm64v8
|
2026-01-26 11:16:32 +08:00
|
|
|
- ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-armv7
|
2025-09-12 19:38:38 +08:00
|
|
|
- name_template: ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:latest
|
|
|
|
|
image_templates:
|
|
|
|
|
- ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-amd64
|
|
|
|
|
- ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-arm64v8
|
2026-01-26 11:16:32 +08:00
|
|
|
- ghcr.io/engigu/{{ .Env.DOCKER_IMAGE_NAME }}:{{ .Version }}-armv7
|
2024-01-01 19:09:35 +08:00
|
|
|
|
|
|
|
|
archives:
|
|
|
|
|
- format: tar.gz
|
|
|
|
|
# this name template makes the OS and Arch compatible with the results of uname.
|
2024-01-07 00:25:35 +08:00
|
|
|
# {{ .ProjectName }}_
|
2024-01-01 19:09:35 +08:00
|
|
|
name_template: >-
|
2024-01-27 22:11:27 +08:00
|
|
|
{{ .Env.CUSTOM_PROJ_NAME }}_
|
2024-01-01 19:09:35 +08:00
|
|
|
{{- title .Os }}_
|
|
|
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
|
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
|
|
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
|
|
|
# use zip for windows archives
|
|
|
|
|
format_overrides:
|
2024-01-27 22:11:27 +08:00
|
|
|
- goos: windows
|
|
|
|
|
format: zip
|
2024-01-02 18:31:55 +08:00
|
|
|
files:
|
2024-01-27 22:11:27 +08:00
|
|
|
- LICENSE
|
|
|
|
|
- README.md
|
|
|
|
|
- conf/*
|
2024-01-02 18:31:55 +08:00
|
|
|
|
2024-01-01 19:09:35 +08:00
|
|
|
checksum:
|
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
|
snapshot:
|
|
|
|
|
name_template: "{{ incpatch .Version }}-next"
|
|
|
|
|
changelog:
|
|
|
|
|
sort: asc
|
|
|
|
|
filters:
|
|
|
|
|
exclude:
|
|
|
|
|
- '^docs:'
|
|
|
|
|
- '^test:'
|
|
|
|
|
|
|
|
|
|
# The lines beneath this are called `modelines`. See `:help modeline`
|
|
|
|
|
# Feel free to remove those if you don't want/use them.
|
|
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
|
|
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|