cc-backend/.goreleaser.yaml

106 lines
2.2 KiB
YAML
Raw Permalink Normal View History

2023-06-16 14:31:09 +02:00
before:
hooks:
- go mod tidy
builds:
- env:
2023-06-20 07:55:57 +02:00
- CGO_ENABLED=1
2023-06-16 14:31:09 +02:00
goos:
- linux
goarch:
- amd64
goamd64:
- v3
id: "cc-backend"
2023-06-27 15:35:57 +02:00
binary: cc-backend
2023-06-16 14:31:09 +02:00
main: ./cmd/cc-backend
2023-06-27 15:35:57 +02:00
ldflags:
- -s -w -X main.version={{.Version}}
- -X main.commit={{.Commit}} -X main.date={{.Date}}
- -linkmode external -extldflags -static
2023-06-16 14:31:09 +02:00
tags:
- static_build
2023-06-20 07:55:57 +02:00
hooks:
pre: make frontend
2023-06-26 14:15:52 +02:00
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
goamd64:
- v3
id: "archive-manager"
2023-06-27 15:35:57 +02:00
binary: archive-manager
2023-06-26 14:15:52 +02:00
main: ./tools/archive-manager
tags:
- static_build
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
goamd64:
- v3
id: "archive-migration"
2023-06-27 15:35:57 +02:00
binary: archive-migration
2023-06-26 14:15:52 +02:00
main: ./tools/archive-migration
tags:
- static_build
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
goamd64:
- v3
id: "gen-keypair"
2023-06-27 15:35:57 +02:00
binary: gen-keypair
2023-06-26 14:15:52 +02:00
main: ./tools/gen-keypair
tags:
- static_build
2023-06-16 14:31:09 +02:00
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
include:
- "^feat:"
- "^fix:"
- "^sec:"
- "^docs:"
2023-06-16 14:31:09 +02:00
groups:
- title: "Dependency updates"
regexp: '^.*?(feat|fix)\(deps\)!?:.+$'
order: 300
- title: "New Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: "Security updates"
regexp: '^.*?sec(\([[:word:]]+\))??!?:.+$'
order: 150
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: "Documentation updates"
regexp: ^.*?doc(\([[:word:]]+\))??!?:.+$
order: 400
release:
2023-07-03 12:32:05 +02:00
draft: false
2023-06-16 14:31:09 +02:00
footer: |
2023-07-03 11:49:05 +02:00
Supports job archive version 1 and database version 6.
2023-06-16 14:31:09 +02:00
# vim: set ts=2 sw=2 tw=0 fo=cnqoj