83 lines
1.7 KiB
YAML
83 lines
1.7 KiB
YAML
# This is an example .goreleaser.yml file with some sane defaults.
|
|
# Make sure to check the documentation at http://goreleaser.com
|
|
|
|
env_files:
|
|
github_token: .env
|
|
gitea_token: .env
|
|
|
|
before:
|
|
hooks:
|
|
# You may remove this if you don't use go modules.
|
|
- go mod tidy
|
|
# you may remove this if you don't need go generate
|
|
- go generate ./...
|
|
builds:
|
|
-
|
|
id: "linux-amd64"
|
|
main: ./main
|
|
binary: goInventorize
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
-
|
|
id: "windows-amd64"
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
-
|
|
id: "darwin-amd64"
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
|
|
archives:
|
|
- replacements:
|
|
darwin: Darwin
|
|
linux: Linux
|
|
windows: Windows
|
|
386: i386
|
|
amd64: x86_64
|
|
dockers:
|
|
-
|
|
goos: linux
|
|
goarch: amd64
|
|
ids:
|
|
- "linux-amd64"
|
|
# Templates of the Docker image names.
|
|
image_templates:
|
|
- "deranjer/goInventorize:latest"
|
|
- "deranjer/goInventorize:{{ .Tag }}"
|
|
- "deranjer/goInventorize:{{ .Tag }}-{{ .Env.GO_VERSION }}"
|
|
- "deranjer/goInventorize:v{{ .Major }}"
|
|
- "ghcr.io/deranjer/goInventorize:latest"
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
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}}"
|
|
- "--platform=linux/amd64"
|
|
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
snapshot:
|
|
name_template: "{{ .Tag }}-next"
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|