2019-07-08 20:51:44 +08:00
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
2019-07-12 16:20:44 +08:00
|
|
|
- CGO_ENABLED=0
|
2019-07-08 20:51:44 +08:00
|
|
|
|
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- make build-frontend
|
|
|
|
|
|
|
|
builds:
|
|
|
|
- binary: listmonk
|
2020-08-09 22:32:43 +08:00
|
|
|
main: ./cmd
|
2019-07-08 20:51:44 +08:00
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
- linux
|
2020-10-19 01:18:00 +08:00
|
|
|
- freebsd
|
|
|
|
- openbsd
|
|
|
|
- netbsd
|
2019-07-08 20:51:44 +08:00
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
ldflags:
|
2020-08-09 22:32:43 +08:00
|
|
|
- -s -w -X "main.buildString={{ .Tag }} ({{ .ShortCommit }} {{ .Date }})" -X "main.versionString={{ .Tag }}"
|
2019-07-08 20:51:44 +08:00
|
|
|
|
|
|
|
hooks:
|
|
|
|
# stuff executables with static assets.
|
2021-02-01 18:48:09 +08:00
|
|
|
post: make pack-bin BIN={{ .Path }}
|
2019-07-08 20:51:44 +08:00
|
|
|
|
|
|
|
archives:
|
|
|
|
- format: tar.gz
|
|
|
|
files:
|
|
|
|
- README.md
|
|
|
|
- LICENSE
|
2020-08-09 22:32:43 +08:00
|
|
|
|
2019-07-12 09:54:33 +08:00
|
|
|
dockers:
|
|
|
|
-
|
|
|
|
goos: linux
|
|
|
|
goarch: amd64
|
2021-03-19 14:37:24 +08:00
|
|
|
ids:
|
2019-07-12 09:54:33 +08:00
|
|
|
- listmonk
|
|
|
|
image_templates:
|
2019-07-12 16:20:44 +08:00
|
|
|
- "listmonk/listmonk:latest"
|
|
|
|
- "listmonk/listmonk:{{ .Tag }}"
|
2019-07-12 09:54:33 +08:00
|
|
|
dockerfile: Dockerfile
|
|
|
|
extra_files:
|
|
|
|
- config.toml.sample
|
2020-07-09 01:08:31 +08:00
|
|
|
- config-demo.toml
|