go-pingbot/.goreleaser.yml

63 lines
1.1 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:
- goos:
- linux
goarch:
- amd64
2021-07-14 11:23:30 +00:00
binary: '{{ .ProjectName }}.out'
ldflags:
- -s -w
2021-10-26 17:35:55 +00:00
- -X gitlab.com/MedzikUser/go/pingbot/config.Version={{.RawVersion}}
- -X gitlab.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:
name_template: 'md5_checksums.txt'
algorithm: md5
dockers:
- id: amd64
goos: linux
goarch: amd64
goarm: ''
image_templates:
- "medzik/pingbot:latest"
- "medzik/pingbot:{{ .Tag }}"
- "medzik/pingbot:v{{ .Major }}"
- "medzik/pingbot:v{{ .Major }}.{{ .Minor }}"
dockerfile: Dockerfile
use: docker
build_flag_templates:
- "--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:
- start.sh