Skip to content

Commit

Permalink
goreleaser: add rpm + deb
Browse files Browse the repository at this point in the history
  • Loading branch information
Mate Ory authored and orymate committed Jul 15, 2019
1 parent 6c58e9f commit c3a6757
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 19 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ jobs:
name: Bundle assets
command: make client-bundle


-
run:
name: Install RPM
command: sudo apt install rpm --yes

-
run:
name: Release
Expand Down
48 changes: 31 additions & 17 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,41 @@ builds:
goarch:
- amd64

archive:
name_template: "banzai_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
-
goos: windows
format: zip
archives:
-
name_template: "banzai_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
-
goos: windows
format: zip

checksum:
name_template: "banzai_checksums.txt"

changelog:
skip: true

brew:
github:
owner: banzaicloud
name: homebrew-tap
folder: Formula
homepage: https://banzaicloud.com/
description: Command-line interface for Banzai Cloud Pipeline platform
test: |
system "#{bin}/banzai --version"
dependencies:
- kubectl
brews:
-
github:
owner: banzaicloud
name: homebrew-tap
folder: Formula
homepage: https://banzaicloud.com/
description: Command-line interface for Banzai Cloud Pipeline platform
test: |
system "#{bin}/banzai --version"
dependencies:
- kubectl

nfpms:
-
vendor: Banzai Cloud
maintainer: Banzai Cloud <[email protected]>
homepage: https://banzaicloud.com/
description: Command-line interface for Banzai Cloud Pipeline platform
formats:
- deb
- rpm
bindir: /usr/bin
license: Apache 2.0
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PIPELINE_VERSION = 0.21.2
GOTESTSUM_VERSION = 0.3.3
GOLANGCI_VERSION = 1.16.0
LICENSEI_VERSION = 0.1.0
GORELEASER_VERSION = 0.98.0
GORELEASER_VERSION = 0.112.2
PACKR_VERSION = 2.0.8
OPENAPI_GENERATOR_VERSION = PR1869

Expand Down Expand Up @@ -151,7 +151,7 @@ bin/goreleaser-${GORELEASER_VERSION}:

.PHONY: release
release: bin/goreleaser # Publish a release
bin/goreleaser release
bin/goreleaser release ${GORELEASERFLAGS}

# release-%: TAG_PREFIX = v
release-%:
Expand Down

0 comments on commit c3a6757

Please sign in to comment.