Skip to content

Commit

Permalink
Prevent goreleaser from uploading pre-release homebrew builds (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerred committed Oct 28, 2019
1 parent c08cd65 commit a791ad3
Showing 1 changed file with 45 additions and 46 deletions.
91 changes: 45 additions & 46 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,32 @@ before:
# you may remove this if you don't need go generate
- go generate ./...
builds:
-
id: "manager"
binary: manager
main: cmd/manager/main.go
ldflags:
- -s -w -X github.com/kudobuilder/kudo/pkg/version.gitVersion={{ .Version }} -X github.com/kudobuilder/kudo/pkg/version.gitCommit={{ .ShortCommit }} -X github.com/kudobuilder/kudo/pkg/version.buildDate={{ .Date }}
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
-
id: "kubectl-kudo"
binary: kubectl-kudo
main: cmd/kubectl-kudo/main.go
ldflags:
- -s -w -X github.com/kudobuilder/kudo/pkg/version.gitVersion={{ .Version }} -X github.com/kudobuilder/kudo/pkg/version.gitCommit={{ .ShortCommit }} -X github.com/kudobuilder/kudo/pkg/version.buildDate={{ .Date }}
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- id: "manager"
binary: manager
main: cmd/manager/main.go
ldflags:
- -s -w -X github.com/kudobuilder/kudo/pkg/version.gitVersion={{ .Version }} -X github.com/kudobuilder/kudo/pkg/version.gitCommit={{ .ShortCommit }} -X github.com/kudobuilder/kudo/pkg/version.buildDate={{ .Date }}
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- id: "kubectl-kudo"
binary: kubectl-kudo
main: cmd/kubectl-kudo/main.go
ldflags:
- -s -w -X github.com/kudobuilder/kudo/pkg/version.gitVersion={{ .Version }} -X github.com/kudobuilder/kudo/pkg/version.gitCommit={{ .ShortCommit }} -X github.com/kudobuilder/kudo/pkg/version.buildDate={{ .Date }}
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
dockers:
- dockerfile: Dockerfile.goreleaser
binaries:
Expand All @@ -48,21 +46,21 @@ dockers:
skip_push: auto

archives:
- id: kubectl-kudo-tarball
builds:
- kubectl-kudo
replacements:
386: i386
amd64: x86_64
format: tar.gz
- id: binaries
builds:
- manager
- kubectl-kudo
replacements:
386: i386
amd64: x86_64
format: binary
- id: kubectl-kudo-tarball
builds:
- kubectl-kudo
replacements:
386: i386
amd64: x86_64
format: tar.gz
- id: binaries
builds:
- manager
- kubectl-kudo
replacements:
386: i386
amd64: x86_64
format: binary
brews:
- name: kudo-cli
github:
Expand All @@ -71,6 +69,7 @@ brews:
commit_author:
name: kudoreleasebot
email: release@kudo.dev
skip_upload: auto
folder: Formula
homepage: https://kudo.dev
description: Interact with KUDO via the kubectl plugin
Expand All @@ -79,7 +78,7 @@ brews:
install: |
bin.install "kubectl-kudo"
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"

Expand All @@ -96,5 +95,5 @@ changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

0 comments on commit a791ad3

Please sign in to comment.