Files
terraform-docs/.goreleaser.yml
Khosrow Moossavi 6820b4c2ce Normalize version to prevent malformed error
As part of this normalization the following is made sure:

- leading `v` is shown in `-v, --version` and `version` command
- commit hash is shown in `-v, --version` and `version` command
- build date is removed
- version core (without pre-release) is used for constraint comparison

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-05-26 13:22:30 -04:00

84 lines
2.1 KiB
YAML

project_name: terraform-docs
builds:
- main: .
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/terraform-docs/terraform-docs/internal/version.commit={{ .ShortCommit }}
goos:
- darwin
- linux
- freebsd
- windows
goarch:
- amd64
- arm64
- arm
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
archives:
- format: tar.gz
name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
checksum:
name_template: "{{ .ProjectName }}-{{ .Tag }}.sha256sum"
snapshot:
name_template: "{{ .Tag }}-dev"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
dockers:
- dockerfile: scripts/release/Dockerfile
image_templates:
- "quay.io/terraform-docs/terraform-docs:latest"
- "quay.io/terraform-docs/terraform-docs:{{ .RawVersion }}"
brews:
- tap:
owner: terraform-docs
name: homebrew-tap
commit_author:
name: terraform-docs-bot
email: bot@terraform-docs.io
url_template: "https://github.com/terraform-docs/terraform-docs/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://github.com/terraform-docs/"
description: "Generate documentation from Terraform modules in various output formats"
test: |
system "#{bin}/terraform-docs version"
scoop:
bucket:
owner: terraform-docs
name: scoop-bucket
commit_author:
name: terraform-docs-bot
email: bot@terraform-docs.io
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
url_template: "https://github.com/terraform-docs/terraform-docs/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://github.com/terraform-docs/"
description: "Generate documentation from Terraform modules in various output formats"
license: MIT
# Uncomment these lines if you want to experiment with other
# parts of the release process without releasing new binaries.
# release:
# disable: true