-
Notifications
You must be signed in to change notification settings - Fork 189
/
config.yml
76 lines (61 loc) · 1.54 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
66
67
68
69
70
71
72
73
74
75
76
version: 2.1
orbs:
helm: banzaicloud/helm@0.0.8
jobs:
build:
resource_class: medium+
docker:
- image: cimg/go:1.19
steps:
- checkout
- restore_cache:
name: Restore Go module cache
keys:
- gomod-v3-{{ checksum "go.sum" }}
- gomod-v3
- run:
name: Install dependencies
command: go mod download
- save_cache:
name: Save Go module cache
key: gomod-v3-{{ checksum "go.sum" }}
paths:
- /go/pkg/mod
- run:
name: Build
command:
make generate
- run:
name: Run linter
command: make lint
- run:
name: Run unit tests
command: make test
when: always
- save_cache:
name: Save build dependencies
key: build-deps-v1-{{ .Branch }}-{{ checksum "Makefile" }}
paths:
- bin/
- store_test_results:
path: build/
- store_artifacts:
path: build/
workflows:
version: 2
ci:
jobs:
- build
helm-chart:
jobs:
- helm/lint-chart:
filters:
tags:
ignore: /.*/
- helm/publish-chart:
context: helm
filters:
branches:
ignore: /.*/
tags:
only: /chart\/kafka-operator\/\d+.\d+.\d+((-rc\.\d+)|(-dev\.\d+))?/