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