mirror of https://github.com/on4kjm/FLEcli.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.7 KiB
76 lines
1.7 KiB
# This is an example goreleaser.yaml file with some sane defaults.
|
|
# Make sure to check the documentation at http://goreleaser.com
|
|
builds:
|
|
- goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
goarch:
|
|
- 386
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
goarm:
|
|
- 6
|
|
ignore:
|
|
- goos: darwin
|
|
goarch: 386
|
|
- goos: windows
|
|
goarch: amd64
|
|
ldflags:
|
|
- -s -w -X FLEcli/flecmd.version={{.Version}} -X FLEcli/flecmd.commit={{.Commit}} -X FLEcli/flecmd.date={{.Date}} -X=FLEcli/flecmd.builtBy=goReleaser
|
|
env:
|
|
- CGO_ENABLED=0
|
|
|
|
dockers:
|
|
- goos: linux
|
|
goarch: amd64
|
|
goarm: ''
|
|
binaries:
|
|
- FLEcli
|
|
image_templates:
|
|
- "on4kjm/flecli:latest"
|
|
- "on4kjm/flecli:{{ .Tag }}"
|
|
# Skips the docker push. Could be useful if you also do draft releases.
|
|
# If set to auto, the release will not be pushed to the docker repository
|
|
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
|
|
# Defaults to false.
|
|
skip_push: auto
|
|
# Path to the Dockerfile (from the project root).
|
|
dockerfile: docker/Dockerfile
|
|
|
|
# Template of the docker build flags.
|
|
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}}"
|
|
|
|
archives:
|
|
- replacements:
|
|
amd64: 64-bit
|
|
386: 32-bit
|
|
darwin: macOS
|
|
linux: Linux
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
files:
|
|
- README.md
|
|
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
changelog:
|
|
skip: true
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|