go-pingbot/.goreleaser.yml

66 lines
1.2 KiB
YAML
Raw Normal View History

2021-07-14 11:23:30 +00:00
project_name: pingbot
2021-07-14 09:52:50 +00:00
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/pingbot
binary: '{{ .ProjectName }}.out'
goos:
2021-07-14 09:52:50 +00:00
- linux
- freebsd
2021-07-14 09:52:50 +00:00
goarch:
- amd64
- arm64
2021-07-14 09:52:50 +00:00
ldflags:
- -s -w
2021-11-10 13:38:54 +00:00
- -X github.com/medzikuser/go-pingbot/config.Version={{ .RawVersion }}
- -X github.com/medzikuser/go-pingbot/config.Build={{ .Date }}
2021-07-14 09:52:50 +00:00
archives:
- format: tar.xz
2021-07-14 09:52:50 +00:00
files:
- schema.env
2021-07-29 18:51:15 +00:00
- config.schema.toml
- README.md
2021-08-17 21:26:19 +00:00
- LICENSE
2021-08-29 10:19:54 +00:00
- start.sh
2021-07-14 09:52:50 +00:00
checksum:
2021-11-10 13:38:54 +00:00
name_template: 'checksums.txt'
2021-11-10 13:38:54 +00:00
algorithm: sha256
dockers:
- id: amd64
goos: linux
goarch: amd64
goarm: ''
image_templates:
2021-11-10 13:38:54 +00:00
- "medzik/pingbot:latest"
- "medzik/pingbot:{{ .Tag }}"
- "medzik/pingbot:v{{ .Major }}"
- "medzik/pingbot:v{{ .Major }}.{{ .Minor }}"
dockerfile: Dockerfile
use: docker
build_flag_templates:
2021-11-10 13:38:54 +00:00
- "--pull"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
extra_files:
2021-11-10 13:38:54 +00:00
- start.sh