Skip to content

Commit

Permalink
Add initial goreleaser file
Browse files Browse the repository at this point in the history
  • Loading branch information
camerondurham committed Aug 14, 2022
1 parent 069bc12 commit 631f961
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
before:
hooks:
- go mod download

builds:
- id: default
goos:
- darwin
- linux
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
ldflags:
- -X github.com/camerondurham/ch/version.PkgVersion={{ .Version }}
- -X github.com/camerondurham/ch/version.GitRevision={{ .ShortCommit }}

- id: windows
goos:
- windows
ignore:
- goos: windows
goarch: 386
ldflags:
- -X github.com/camerondurham/ch/version.PkgVersion={{ .Version }}
- -X github.com/camerondurham/ch/version.GitRevision={{ .ShortCommit }}


release:
prerelease: auto

brews:
-
name: ch

# NOTE: make sure the url_template, the token and given repo (github or gitlab) owner and name are from the
# same kind. We will probably unify this in the next major version like it is done with scoop.

tap:
owner: camerondurham
name: homebrew-tap
branch: main
url_template: "http://github.com/camerondurham/ch/releases/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
homepage: "https://github.com/camerondurham/ch"
description: "Docker config and shell manager for using (or misusing) containers as dev environments"
license: "Apache-2.0"
skip_upload: auto
test: |
system "#{bin}/ch --version"
install: |
bin.install "ch"

0 comments on commit 631f961

Please sign in to comment.