/
config.yml
65 lines (52 loc) · 1.72 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: 2
jobs:
test:
working_directory: /go/src/github.com/robscott/kube-capacity
docker:
- image: circleci/golang:1.13
steps:
- checkout
- run: go get -u golang.org/x/lint/golint
- run: go list ./... | grep -v vendor | xargs golint -set_exit_status
- 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
update-krew-index:
working_directory: /go/src/github.com/robscott/kube-capacity
docker:
- image: circleci/golang:1.13
environment:
KREW_RELEASE_BOT_WEBHOOK_URL: https://krew-release-bot-dryrun.rajatjindal.com/github-action-webhook
KREW_RELEASE_BOT_VERSION: v0.0.34-4
steps:
- checkout
- run: |
echo "using krew-release-bot version ${KREW_RELEASE_BOT_VERSION}"
curl -LO https://github.com/rajatjindal/krew-release-bot/releases/download/${KREW_RELEASE_BOT_VERSION}/krew-release-bot_${KREW_RELEASE_BOT_VERSION}_linux_amd64.tar.gz
tar -xvf krew-release-bot_${KREW_RELEASE_BOT_VERSION}_linux_amd64.tar.gz
- run: ./krew-release-bot action
workflows:
version: 2
main:
jobs:
- test
- release:
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+(\.[0-9]+)*(-.*)*/
- update-krew-index:
requires:
- release
filters:
branches:
ignore: /.*/
tags:
only: /[0-9]+(\.[0-9]+)*(-.*)*/