-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding goreleaser.yaml with tbd .Description
- Loading branch information
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
checksum: | ||
name_template: "checksums.txt" | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
gomod: | ||
proxy: true | ||
mod: mod | ||
dockers: | ||
- image_templates: ["fortio/{{ .ProjectName }}:{{ .Version }}-amd64"] | ||
use: buildx | ||
goarch: amd64 | ||
build_flag_templates: | ||
- --platform=linux/amd64 | ||
- image_templates: ["fortio/{{ .ProjectName }}:{{ .Version }}-arm64"] | ||
use: buildx | ||
goarch: arm64 | ||
build_flag_templates: | ||
- --platform=linux/arm64 | ||
docker_manifests: | ||
- | ||
name_template: fortio/{{ .ProjectName }}:{{ .Version }} | ||
image_templates: | ||
- fortio/{{ .ProjectName }}:{{ .Version }}-amd64 | ||
- fortio/{{ .ProjectName }}:{{ .Version }}-arm64 | ||
- | ||
name_template: fortio/{{ .ProjectName }}:latest | ||
image_templates: | ||
- fortio/{{ .ProjectName }}:{{ .Version }}-amd64 | ||
- fortio/{{ .ProjectName }}:{{ .Version }}-arm64 | ||
release: | ||
prerelease: auto | ||
mode: append | ||
# .goreleaser.yaml | ||
brews: | ||
- | ||
# GitHub/GitLab repository to push the formula to | ||
repository: | ||
owner: fortio | ||
name: homebrew-tap | ||
|
||
# Git author used to commit to the repository. | ||
# Defaults are shown. | ||
commit_author: | ||
name: goreleaserbot | ||
email: [email protected] | ||
|
||
# The project name and current git tag are used in the format string. | ||
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" | ||
|
||
# Folder inside the repository to put the formula. | ||
# Default is the root folder. | ||
folder: Formula | ||
|
||
# Your app's homepage. | ||
# Default is empty. | ||
homepage: "https://fortio.org/" | ||
|
||
# Template of your app's description. | ||
# Default is empty. | ||
description: "{{ .Description }}" | ||
|
||
# SPDX identifier of your app's license. | ||
# Default is empty. | ||
license: "Apache-2.0" | ||
|
||
# So you can `brew test` your formula. | ||
# Default is empty. | ||
test: | | ||
assert_match version.to_s, shell_output("#{bin}/{{ .ProjectName }} -version") |