Dan Anglin
0cd7dab556
- security: updated Golang version to 1.12.8 for CI builds - added: configuration for build and release automation using GoReleaser (https://goreleaser.com) - (Releases will be semi-automatic for now due to the need of the access token. When/if project specific access token is supported then I'll complete the release stage of the pipeline.) - added: version.go for printing out the versions
50 lines
848 B
YAML
50 lines
848 B
YAML
---
|
|
project_name: pominal
|
|
|
|
before:
|
|
hooks:
|
|
- go mod download
|
|
|
|
builds:
|
|
- binary: pominal
|
|
env:
|
|
- CGO_ENABLED=0
|
|
flags:
|
|
- -a
|
|
- -v
|
|
goarch:
|
|
- 386
|
|
- amd64
|
|
goos:
|
|
- linux
|
|
id: pominal-build
|
|
ldflags:
|
|
- s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}} -X main.goversion={{.Env.GOVERSION}}
|
|
|
|
archives:
|
|
- files:
|
|
- LICENSE
|
|
- README.md
|
|
format: tar.gz
|
|
id: pominal-archive
|
|
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
|
|
replacements:
|
|
386: i386
|
|
amd64: x86_64
|
|
wrap_in_directory: true
|
|
|
|
checksum:
|
|
algorithm: sha256
|
|
name_template: "{{ .ProjectName }}-{{ .Version }}-CHECKSUMS.txt"
|
|
|
|
snapshot:
|
|
name_template: "SNAPSHOT-{{ .ShortCommit }}"
|
|
|
|
changelog:
|
|
sort: desc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^chore:"
|
|
- "^ci:"
|