Skip to content

Commit

Permalink
setup go-releaser and fix deprecated/removed configs
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatjindal committed Feb 1, 2020
1 parent 8a283b6 commit 28b4e29
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
18 changes: 17 additions & 1 deletion .circleci/config.yml
Expand Up @@ -14,8 +14,24 @@ jobs:
- run: go list ./... | grep -v vendor | xargs go vet
- run: go test ./pkg/... -v -coverprofile cover.out

release:
working_directory: /go/src/github.com/robscott/kube-capacity

docker:
- image: circleci/golang:1.13

steps:
- checkout
- run: curl -sL https://git.io/goreleaser | bash

workflows:
version: 2
test:
main:
jobs:
- test
- release:
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+(\.[0-9]+)*(-.*)*/
30 changes: 15 additions & 15 deletions .goreleaser.yml
@@ -1,13 +1,13 @@
builds:
- env:
- CGO_ENABLED=0
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -18,11 +18,11 @@ changelog:
exclude:
- '^docs:'
- '^test:'
brew:
github:
owner: robscott
name: homebrew-tap
folder: Formula
description: kube-capacity provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster
test: |
system "#{bin}/kube-capacity version"
brews:
- github:
owner: robscott
name: homebrew-tap
folder: Formula
description: kube-capacity provides an overview of the resource requests, limits, and utilization in a Kubernetes cluster
test: |
system "#{bin}/kube-capacity version"

0 comments on commit 28b4e29

Please sign in to comment.