-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.kres.yaml
94 lines (94 loc) · 2.31 KB
/
.kres.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Configuration file for Kres
#
# Kres configuration is a multi-document YAML file, each document has same structure:
#
# ---
# kind: <package>.<Type>
# name: <nodeName> # (optional)
# spec: # configuration for specific project node
# field: value
# ...
#
#
# Any node in the tree might have its configuration overridden via the config.
---
kind: common.Image
name: image-kres
spec:
extraEnvironment:
PLATFORM: linux/amd64,linux/arm64
entrypointArgs: ['gen']
---
kind: golang.Build
spec:
outputs:
linux-amd64:
GOOS: linux
GOARCH: amd64
linux-arm64:
GOOS: linux
GOARCH: arm64
darwin-amd64:
GOOS: darwin
GOARCH: amd64
darwin-arm64:
GOOS: darwin
GOARCH: arm64
---
kind: service.CodeCov
spec:
targetThreshold: 8
---
kind: common.Build
spec:
ignoredPaths:
- "_out/example/"
---
kind: golang.Generate
spec:
versionPackagePath: internal/version
---
kind: golang.GolangciLint
spec:
depguardExtraRules:
test_kres_depguard_extra_rule_1:
list-mode: lax
files:
- test_1.go
deny:
- pkg: io/ioutil
desc: Test rule 1
test_kres_depguard_extra_rule_2:
list-mode: lax
files:
- test_2.go
deny:
- pkg: io/ioutil
desc: Test rule 2
---
kind: common.Renovate
spec:
customManagers:
- customType: regex
fileMatch:
- internal/config/constants.go
matchStrings:
- '\/\/\s+renovate: datasource=(?<datasource>.*?)(?:\s+extractVersion=(?<extractVersion>.+?))?(?:\s+versioning=(?<versioning>.+?))?\s+depName=(?<depName>.+?)?\s.*Version\s+=\s+\"(?<currentValue>.+?)\"'
versioningTemplate: "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
packageRules:
- matchPackageNames:
- golang/go
versioning: 'regex:^(?<major>\d+)\.(?<minor>\d+)\.?(?<patch>\d+)?$'
- matchPackageNames:
- actions/checkout
- docker/login-action
- crazy-max/ghaction-github-release
- docker/setup-buildx-action
- slackapi/slack-github-action
versioning: 'regex:^v(?<major>\d+)'
- matchPackageNames:
- potiuk/get-workflow-origin
versioning: 'regex:^v(?<major>\d+)_(?<minor>\d+)_?(?<patch>\d+)?$'
- enabled: false
matchFileNames:
- internal/output/dockerfile/dockerfile_test.go