forked from kubernetes/publishing-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-rules-configmap.yaml
More file actions
33 lines (29 loc) · 893 Bytes
/
example-rules-configmap.yaml
File metadata and controls
33 lines (29 loc) · 893 Bytes
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
apiVersion: v1
kind: ConfigMap
metadata:
name: publisher-rules
data:
config: |
# Specify branches you want to skip
skip-source-branches:
# - release-1.7
# ls-files pattern like: */BUILD *.ext pkg/foo.go Makefile
recursive-delete-patterns:
# - BUILD
# - "*/BUILD"
# Skip update/fix gomod
# skip-gomod: true
# Skip sync tags
# skip-tags: true
# a valid go version string like 1.10.2 or 1.10
# if the go version is not specified in rules,
# default-go-version is used.
# default-go-version: 1.14
rules:
- destination: <destination-repository-name> # eg. "client-go"
branches:
- name: <rule-name> # eg. "master"
source:
branch: <source-repository-branch> # eg. "master"
dir: <subdirectory> # eg. "staging/src/k8s.io/client-go"
publish-script: <script-path> # eg. /publish.sh