Skip to content

Commit

Permalink
adding goreleaser.yaml with tbd .Description
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Mar 20, 2024
1 parent 0a10cf2 commit 4e58dbc
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions goreleaser.yaml
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")

0 comments on commit 4e58dbc

Please sign in to comment.