mirror of
https://github.com/MizuchiLabs/mantrae.git
synced 2025-12-16 20:05:17 -06:00
126 lines
2.6 KiB
YAML
126 lines
2.6 KiB
YAML
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
||
version: 2
|
||
project_name: mantrae
|
||
report_sizes: true
|
||
pro: false
|
||
|
||
before:
|
||
hooks:
|
||
- go fmt ./...
|
||
- go vet ./...
|
||
- go mod tidy
|
||
- go mod verify
|
||
|
||
builds:
|
||
- id: server
|
||
main: ./server/cmd/
|
||
binary: mantrae
|
||
env: [CGO_ENABLED=0]
|
||
ldflags:
|
||
- -s -w
|
||
- -X github.com/mizuchilabs/mantrae/pkg/build.Version={{.Tag}}
|
||
- -X github.com/mizuchilabs/mantrae/pkg/build.Commit={{.Commit}}
|
||
- -X github.com/mizuchilabs/mantrae/pkg/build.Date={{.Date}}
|
||
goos:
|
||
- linux
|
||
# - darwin
|
||
# - windows
|
||
goarch:
|
||
- amd64
|
||
- arm64
|
||
|
||
- id: agent
|
||
main: ./agent/cmd/
|
||
binary: mantrae_agent
|
||
env: [CGO_ENABLED=0]
|
||
ldflags:
|
||
- -s -w
|
||
- -X github.com/mizuchilabs/mantrae/pkg/build.Version={{.Tag}}
|
||
- -X github.com/mizuchilabs/mantrae/pkg/build.Commit={{.Commit}}
|
||
- -X github.com/mizuchilabs/mantrae/pkg/build.Date={{.Date}}
|
||
goos:
|
||
- linux
|
||
goarch:
|
||
- amd64
|
||
- arm64
|
||
|
||
kos:
|
||
- id: server
|
||
base_image: alpine
|
||
repositories: [ghcr.io/mizuchilabs/mantrae]
|
||
bare: true
|
||
preserve_import_paths: false
|
||
tags:
|
||
- "{{.Version}}"
|
||
- latest
|
||
platforms:
|
||
- linux/amd64
|
||
- linux/arm64
|
||
|
||
- id: agent
|
||
base_image: alpine
|
||
repositories: [ghcr.io/mizuchilabs/mantrae-agent]
|
||
bare: true
|
||
preserve_import_paths: false
|
||
tags:
|
||
- "{{.Version}}"
|
||
- latest
|
||
platforms:
|
||
- linux/amd64
|
||
- linux/arm64
|
||
|
||
upx:
|
||
- enabled: true
|
||
lzma: true
|
||
compress: best
|
||
|
||
source:
|
||
enabled: true
|
||
|
||
release:
|
||
draft: false
|
||
replace_existing_draft: true
|
||
replace_existing_artifacts: true
|
||
mode: keep-existing
|
||
|
||
archives:
|
||
- files:
|
||
- LICENSE
|
||
name_template: >-
|
||
{{ .Binary }}_{{ .Os }}_{{ .Arch }}
|
||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||
|
||
snapshot:
|
||
version_template: "{{ incpatch .Version }}-next"
|
||
|
||
changelog:
|
||
sort: asc
|
||
filters:
|
||
include:
|
||
- "^feat:"
|
||
- "^fix:"
|
||
- "^sec:"
|
||
- "^docs:"
|
||
- "^wip:"
|
||
groups:
|
||
- title: "🚀 Features"
|
||
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
|
||
order: 0
|
||
- title: "🔒 Security"
|
||
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
|
||
order: 1
|
||
- title: "ðŸ<C3B0>› Bug fixes"
|
||
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
|
||
order: 2
|
||
- title: "📚 Documentation"
|
||
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
|
||
order: 3
|
||
- title: "🚧 Work in progress"
|
||
regexp: '^.*?wip(\([[:word:]]+\))??!?:.+$'
|
||
order: 4
|
||
- title: "ðŸ<C3B0>·ï¸<C3AF> Other changes"
|
||
regexp: '^.*?chore(\([[:word:]]+\))??!?:.+$'
|
||
order: 5
|
||
- title: Misc
|
||
order: 999
|