Skip to content

Commit

Permalink
feat(release): Support Homebrew in goreleaser (#389)
Browse files Browse the repository at this point in the history
* fix: remove trailing spaces

Signed-off-by: Yuchen Cheng <rudeigerc@gmail.com>

* feat(release): support Homebrew in goreleaser

Signed-off-by: Yuchen Cheng <rudeigerc@gmail.com>
  • Loading branch information
rudeigerc committed Jun 16, 2022
1 parent d947b2b commit df5bde3
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builds:
main: ./cmd/envd
binary: envd
ldflags:
- -s -w
- -s -w
- -X github.com/tensorchord/envd/pkg/version.version={{ .Version }}
- -X github.com/tensorchord/envd/pkg/version.buildDate={{ .Date }}
- -X github.com/tensorchord/envd/pkg/version.gitCommit={{ .Commit }}
Expand Down Expand Up @@ -71,15 +71,15 @@ dockers:
- "ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}-amd64"
use: buildx
dockerfile: .goreleaser/envd-ssh.Dockerfile
ids:
ids:
- envd-ssh
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}-arm64v8"
use: buildx
goarch: arm64
ids:
ids:
- envd-ssh
dockerfile: .goreleaser/envd-ssh.Dockerfile
build_flag_templates:
Expand All @@ -89,3 +89,21 @@ docker_manifests:
image_templates:
- ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}-amd64
- ghcr.io/tensorchord/envd-ssh-from-scratch:{{ .Version }}-arm64v8
brews:
- name: envd
ids:
- envd
tap:
owner: tensorchord
name: homebrew-tap
commit_author:
name: TensorChord
email: envd-maintainers@tensorchord.ai
folder: Formula
caveats: |
Please run `envd bootstrap` first to bootstrap
homepage: https://envd.tensorchord.ai/
description: Development environment for data science and AI/ML teams
license: Apache-2.0
test: |
system "#{bin}/envd version"

0 comments on commit df5bde3

Please sign in to comment.