Switch CI pipelines to GitHub/Forgejo Actions using ci-base container image, simplify Makefile by removing tools/bin versioned-symlink pattern, update Containerfile with multi-stage build for CA certs and non-root user, and clean up GoReleaser config with ldflags and explicit release target. Reviewed-on: #6 Co-authored-by: Felipe M. <me@fmartingr.com> Co-committed-by: Felipe M. <me@fmartingr.com>
121 lines
2.5 KiB
YAML
121 lines
2.5 KiB
YAML
version: 2
|
|
|
|
project_name: smtp2shoutrrr
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- binary: smtp2shoutrrr
|
|
main: ./cmd/smtp2shoutrrr
|
|
env:
|
|
- CGO_ENABLED=0
|
|
ldflags:
|
|
- -s -w
|
|
tags:
|
|
- netgo
|
|
- osusergo
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
goarm:
|
|
- "7"
|
|
ignore:
|
|
- goos: darwin
|
|
goarch: arm
|
|
- goos: windows
|
|
goarch: arm
|
|
- goos: windows
|
|
goarch: arm64
|
|
|
|
archives:
|
|
- id: smtp2shoutrrr
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- if eq .Os "darwin" }}Darwin{{- else if eq .Os "linux" }}Linux{{- else if eq .Os "windows" }}Windows{{- else }}{{ .Os }}{{ end }}_
|
|
{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "arm64" }}aarch64{{- else }}{{ .Arch }}{{ end }}_{{ .Version }}
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: ['zip']
|
|
|
|
dockers_v2:
|
|
- images:
|
|
- git.nakama.town/fmartingr/smtp2shoutrrr
|
|
dockerfile: Containerfile
|
|
flags:
|
|
- "--pull"
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
- linux/arm/v7
|
|
tags:
|
|
- "{{ .Version }}"
|
|
- latest
|
|
|
|
nfpms:
|
|
- maintainer: Felipe Martin <me@fmartingr.com>
|
|
description: SMTP server to forward messages to shoutrrr endpoints
|
|
homepage: https://git.nakama.town/fmartingr/smtp2shoutrrr
|
|
license: AGPL-3.0
|
|
formats:
|
|
- deb
|
|
- rpm
|
|
- apk
|
|
|
|
upx:
|
|
- enabled: true
|
|
ids:
|
|
- smtp2shoutrrr
|
|
goos: [linux, darwin]
|
|
goarch: [amd64, arm, arm64]
|
|
goarm: ["7"]
|
|
|
|
checksum:
|
|
name_template: checksums.txt
|
|
|
|
changelog:
|
|
sort: asc
|
|
groups:
|
|
- title: Features
|
|
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
|
|
order: 0
|
|
- title: "Fixes"
|
|
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
|
|
order: 1
|
|
- title: "Performance"
|
|
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
|
|
order: 2
|
|
- title: API
|
|
regexp: '^.*?api(\([[:word:]]+\))??!?:.+$'
|
|
order: 3
|
|
- title: Documentation
|
|
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
|
|
order: 4
|
|
- title: "Tests"
|
|
regexp: '^.*?test(\([[:word:]]+\))??!?:.+$'
|
|
order: 5
|
|
- title: CI and Delivery
|
|
regexp: '^.*?ci(\([[:word:]]+\))??!?:.+$'
|
|
order: 6
|
|
- title: Others
|
|
order: 999
|
|
filters:
|
|
exclude:
|
|
- "^deps:"
|
|
- "^chore\\(deps\\):"
|
|
|
|
release:
|
|
gitea:
|
|
owner: fmartingr
|
|
name: smtp2shoutrrr
|
|
prerelease: auto
|
|
|
|
gitea_urls:
|
|
api: https://git.nakama.town/api/v1
|
|
download: https://git.nakama.town
|