Skip to content

Commit 15314fe

Browse files
authored
Merge pull request kcp-dev#3810 from mjudeikis/update.publishing.rules
Update publishing rules
2 parents b36d1ba + 1ededb8 commit 15314fe

2 files changed

Lines changed: 175 additions & 117 deletions

File tree

docs/content/contributing/guides/publishing-a-new-kcp-release.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ The tool takes the path to the rules file, the branch name, and the Go version u
7979
_output/update-rules -branch release-0.x -go 1.x.y -rules ../kcp/staging/publishing/rules.yaml -o /tmp/rules.yaml
8080
```
8181
82+
Image example:
83+
84+
```shell
85+
docker run --rm -v $(pwd)/staging/publishing:/rules ghcr.io/kcp-dev/publishing-bot:latest \
86+
/update-rules -branch release-0.x -go 1.x.y -rules /rules/rules.yaml -o /rules/rules.yaml
87+
```
88+
8289
This will generate a temporary rules file in `/tmp/rules.yaml`. You'll need to replace `staging/publishing/rules.yaml`
8390
in the kcp repo with that temporary file and push it to the repo before proceeding. The new rules file will be used
8491
on the next publishing-bot run automatically.

staging/publishing/rules.yaml

Lines changed: 168 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,172 @@
11
rules:
2-
- destination: apimachinery
3-
branches:
4-
- name: main
5-
source:
6-
branch: main
7-
dirs:
8-
- staging/src/github.com/kcp-dev/apimachinery
9-
- name: release-0.29
10-
go: 1.24.11
11-
source:
12-
branch: release-0.29
13-
dirs:
14-
- staging/src/github.com/kcp-dev/apimachinery
15-
destination-tag-base: v2
16-
library: true
17-
- destination: code-generator
18-
branches:
19-
- name: main
20-
source:
21-
branch: main
22-
dirs:
23-
- staging/src/github.com/kcp-dev/code-generator
24-
- name: release-0.29
25-
go: 1.24.11
26-
source:
27-
branch: release-0.29
28-
dirs:
29-
- staging/src/github.com/kcp-dev/code-generator
30-
destination-tag-base: v3
31-
library: true
32-
- destination: client-go
33-
branches:
34-
- name: main
35-
dependencies:
36-
- repository: apimachinery
37-
branch: main
38-
- repository: code-generator
39-
branch: main
40-
source:
41-
branch: main
42-
dirs:
43-
- staging/src/github.com/kcp-dev/client-go
44-
- name: release-0.29
45-
go: 1.24.11
46-
dependencies:
47-
- repository: apimachinery
48-
branch: release-0.29
49-
- repository: code-generator
50-
branch: release-0.29
51-
source:
52-
branch: release-0.29
53-
dirs:
54-
- staging/src/github.com/kcp-dev/client-go
55-
destination-tag-base: v0
56-
library: true
57-
- destination: sdk
58-
branches:
59-
- name: main
60-
dependencies:
61-
- repository: apimachinery
62-
branch: main
63-
- repository: code-generator
64-
branch: main
65-
- repository: client-go
66-
branch: main
67-
source:
68-
branch: main
69-
dirs:
70-
- staging/src/github.com/kcp-dev/sdk
71-
- name: release-0.29
72-
go: 1.24.11
73-
dependencies:
74-
- repository: apimachinery
75-
branch: release-0.29
76-
- repository: code-generator
77-
branch: release-0.29
78-
- repository: client-go
79-
branch: release-0.29
80-
source:
81-
branch: release-0.29
82-
dirs:
83-
- staging/src/github.com/kcp-dev/sdk
84-
destination-tag-base: v0
85-
library: true
86-
- destination: cli
87-
branches:
88-
- name: main
89-
dependencies:
90-
- repository: apimachinery
91-
branch: main
92-
- repository: code-generator
93-
branch: main
94-
- repository: client-go
95-
branch: main
96-
- repository: sdk
97-
branch: main
98-
source:
99-
branch: main
100-
dirs:
101-
- staging/src/github.com/kcp-dev/cli
102-
- name: release-0.29
103-
go: 1.24.11
104-
dependencies:
105-
- repository: apimachinery
106-
branch: release-0.29
107-
- repository: code-generator
108-
branch: release-0.29
109-
- repository: client-go
110-
branch: release-0.29
111-
- repository: sdk
112-
branch: release-0.29
113-
source:
114-
branch: release-0.29
115-
dirs:
116-
- staging/src/github.com/kcp-dev/cli
117-
destination-tag-base: v0
118-
library: true
2+
- destination: apimachinery
3+
branches:
4+
- name: main
5+
source:
6+
branch: main
7+
dirs:
8+
- staging/src/github.com/kcp-dev/apimachinery
9+
- name: release-0.29
10+
go: 1.24.11
11+
source:
12+
branch: release-0.29
13+
dirs:
14+
- staging/src/github.com/kcp-dev/apimachinery
15+
- name: release-0.30
16+
go: 1.24.11
17+
source:
18+
branch: release-0.30
19+
dirs:
20+
- staging/src/github.com/kcp-dev/apimachinery
21+
destination-tag-base: v2
22+
library: true
23+
- destination: code-generator
24+
branches:
25+
- name: main
26+
source:
27+
branch: main
28+
dirs:
29+
- staging/src/github.com/kcp-dev/code-generator
30+
- name: release-0.29
31+
go: 1.24.11
32+
source:
33+
branch: release-0.29
34+
dirs:
35+
- staging/src/github.com/kcp-dev/code-generator
36+
- name: release-0.30
37+
go: 1.24.11
38+
source:
39+
branch: release-0.30
40+
dirs:
41+
- staging/src/github.com/kcp-dev/code-generator
42+
destination-tag-base: v3
43+
library: true
44+
- destination: client-go
45+
branches:
46+
- name: main
47+
dependencies:
48+
- repository: apimachinery
49+
branch: main
50+
- repository: code-generator
51+
branch: main
52+
source:
53+
branch: main
54+
dirs:
55+
- staging/src/github.com/kcp-dev/client-go
56+
- name: release-0.29
57+
go: 1.24.11
58+
dependencies:
59+
- repository: apimachinery
60+
branch: release-0.29
61+
- repository: code-generator
62+
branch: release-0.29
63+
source:
64+
branch: release-0.29
65+
dirs:
66+
- staging/src/github.com/kcp-dev/client-go
67+
- name: release-0.30
68+
go: 1.24.11
69+
dependencies:
70+
- repository: apimachinery
71+
branch: release-0.30
72+
- repository: code-generator
73+
branch: release-0.30
74+
source:
75+
branch: release-0.30
76+
dirs:
77+
- staging/src/github.com/kcp-dev/client-go
78+
destination-tag-base: v0
79+
library: true
80+
- destination: sdk
81+
branches:
82+
- name: main
83+
dependencies:
84+
- repository: apimachinery
85+
branch: main
86+
- repository: code-generator
87+
branch: main
88+
- repository: client-go
89+
branch: main
90+
source:
91+
branch: main
92+
dirs:
93+
- staging/src/github.com/kcp-dev/sdk
94+
- name: release-0.29
95+
go: 1.24.11
96+
dependencies:
97+
- repository: apimachinery
98+
branch: release-0.29
99+
- repository: code-generator
100+
branch: release-0.29
101+
- repository: client-go
102+
branch: release-0.29
103+
source:
104+
branch: release-0.29
105+
dirs:
106+
- staging/src/github.com/kcp-dev/sdk
107+
- name: release-0.30
108+
go: 1.24.11
109+
dependencies:
110+
- repository: apimachinery
111+
branch: release-0.30
112+
- repository: code-generator
113+
branch: release-0.30
114+
- repository: client-go
115+
branch: release-0.30
116+
source:
117+
branch: release-0.30
118+
dirs:
119+
- staging/src/github.com/kcp-dev/sdk
120+
destination-tag-base: v0
121+
library: true
122+
- destination: cli
123+
branches:
124+
- name: main
125+
dependencies:
126+
- repository: apimachinery
127+
branch: main
128+
- repository: code-generator
129+
branch: main
130+
- repository: client-go
131+
branch: main
132+
- repository: sdk
133+
branch: main
134+
source:
135+
branch: main
136+
dirs:
137+
- staging/src/github.com/kcp-dev/cli
138+
- name: release-0.29
139+
go: 1.24.11
140+
dependencies:
141+
- repository: apimachinery
142+
branch: release-0.29
143+
- repository: code-generator
144+
branch: release-0.29
145+
- repository: client-go
146+
branch: release-0.29
147+
- repository: sdk
148+
branch: release-0.29
149+
source:
150+
branch: release-0.29
151+
dirs:
152+
- staging/src/github.com/kcp-dev/cli
153+
- name: release-0.30
154+
go: 1.24.11
155+
dependencies:
156+
- repository: apimachinery
157+
branch: release-0.30
158+
- repository: code-generator
159+
branch: release-0.30
160+
- repository: client-go
161+
branch: release-0.30
162+
- repository: sdk
163+
branch: release-0.30
164+
source:
165+
branch: release-0.30
166+
dirs:
167+
- staging/src/github.com/kcp-dev/cli
168+
destination-tag-base: v0
169+
library: true
119170
recursive-delete-patterns:
120171
- '*/.gitattributes'
121172
default-go-version: 1.24.11

0 commit comments

Comments
 (0)