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
|
2020-10-18 17:18:00 +00:00
|
|
|
- freebsd
|
|
|
|
- openbsd
|
|
|
|
- netbsd
|
2019-07-08 12:51:44 +00:00
|
|
|
goarch:
|
|
|
|
- amd64
|
2023-03-21 12:31:30 +00:00
|
|
|
- arm64
|
|
|
|
- arm
|
|
|
|
goarm:
|
|
|
|
- 6
|
|
|
|
- 7
|
2019-07-08 12:51:44 +00:00
|
|
|
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.
|
2021-02-01 10:48:09 +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:
|
2023-04-11 16:12:41 +00:00
|
|
|
- goos: linux
|
2019-07-12 01:54:33 +00:00
|
|
|
goarch: amd64
|
2021-03-19 06:37:24 +00:00
|
|
|
ids:
|
2019-07-12 01:54:33 +00:00
|
|
|
- listmonk
|
|
|
|
image_templates:
|
2019-07-12 08:20:44 +00:00
|
|
|
- "listmonk/listmonk:latest"
|
|
|
|
- "listmonk/listmonk:{{ .Tag }}"
|
2023-04-11 16:12:41 +00:00
|
|
|
- "ghcr.io/knadh/{{ .ProjectName }}:latest"
|
|
|
|
- "ghcr.io/knadh/{{ .ProjectName }}:{{ .Tag }}"
|
|
|
|
build_flag_templates:
|
|
|
|
- --platform=linux/amd64
|
|
|
|
- --label=org.opencontainers.image.title={{ .ProjectName }}
|
|
|
|
- --label=org.opencontainers.image.description={{ .ProjectName }}
|
|
|
|
- --label=org.opencontainers.image.url=https://github.com/knadh/{{ .ProjectName }}
|
|
|
|
- --label=org.opencontainers.image.source=https://github.com/knadh/{{ .ProjectName }}
|
|
|
|
- --label=org.opencontainers.image.version={{ .Version }}
|
|
|
|
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
|
|
|
|
- --label=org.opencontainers.image.revision={{ .FullCommit }}
|
|
|
|
- --label=org.opencontainers.image.licenses=AGPL-3.0
|
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
|