Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 774b297

Browse files
authored
Merge pull request #568 from cprivitere/github-actions
🐛 Github-actions
2 parents d4f297d + c927c7e commit 774b297

File tree

7 files changed

+94
-77
lines changed

7 files changed

+94
-77
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<!-- please add a icon to the title of this PR (see https://sigs.k8s.io/cluster-api/VERSIONING.md), and delete this line and similar ones -->
2-
<!-- the icon will be either ⚠️ (:warning:, major or breaking changes), ✨ (:sparkles:, minor or feature additions), 🐛 (:bug:, patch and bugfixes), 📖 (:book:, documentation or proposals), or 🏃 (:running:, other) -->
1+
<!-- please add an icon to the title of this PR (see https://sigs.k8s.io/cluster-api/CONTRIBUTING.md#contributing-a-patch), and delete this line and similar ones -->
2+
<!-- the icon will be either ⚠️ (:warning:, major or breaking changes), ✨ (:sparkles:, feature additions), 🐛 (:bug:, patch and bugfixes), 📖 (:book:, documentation or proposals), or 🌱 (:seedling:, minor or other) -->
33

44
**What this PR does / why we need it**:
55

66
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
7-
Fixes #
7+
Fixes #

.github/actions/setup-go/action.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 55 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,58 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
13
version: 2
24
updates:
3-
# Maintain dependencies for GitHub Actions.
4-
- package-ecosystem: "github-actions"
5-
directory: "/"
6-
schedule:
7-
interval: "daily"
8-
commit-message:
9-
prefix: ":seedling:"
10-
11-
# Maintain dependencies for Go modules.
12-
- package-ecosystem: "gomod"
13-
directory: "/"
14-
schedule:
15-
interval: "daily"
16-
commit-message:
17-
prefix: ":seedling:"
18-
19-
# Maintain e2e test Go modules
20-
- package-ecosystem: "gomod"
21-
directory: "/test/e2e"
22-
schedule:
23-
interval: "daily"
24-
commit-message:
25-
prefix: ":seedling:"
26-
27-
# Maintain dependencies for Docker images.
28-
- package-ecosystem: "docker"
29-
directory: "/"
30-
schedule:
31-
interval: "daily"
32-
commit-message:
5+
# GitHub Actions
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
commit-message:
3311
prefix: ":seedling:"
12+
labels:
13+
- "ok-to-test"
14+
# Go
15+
- package-ecosystem: "gomod"
16+
directory: "/"
17+
schedule:
18+
interval: "weekly"
19+
ignore:
20+
# Ignore controller-runtime as its upgraded manually.
21+
- dependency-name: "sigs.k8s.io/controller-runtime"
22+
# Ignore k8s and its transitives modules as they are upgraded manually
23+
# together with controller-runtime.
24+
- dependency-name: "k8s.io/*"
25+
- dependency-name: "go.etcd.io/*"
26+
- dependency-name: "google.golang.org/grpc"
27+
commit-message:
28+
prefix: ":seedling:"
29+
labels:
30+
- "area/dependency"
31+
- "ok-to-test"
32+
# Maintain e2e test Go modules
33+
- package-ecosystem: "gomod"
34+
directory: "/test/e2e"
35+
schedule:
36+
interval: "weekly"
37+
ignore:
38+
# Ignore controller-runtime as its upgraded manually.
39+
- dependency-name: "sigs.k8s.io/controller-runtime"
40+
# Ignore k8s and its transitives modules as they are upgraded manually
41+
# together with controller-runtime.
42+
- dependency-name: "k8s.io/*"
43+
- dependency-name: "go.etcd.io/*"
44+
- dependency-name: "google.golang.org/grpc"
45+
commit-message:
46+
prefix: ":seedling:"
47+
labels:
48+
- "area/dependency"
49+
- "ok-to-test"
50+
# Maintain dependencies for Docker images.
51+
- package-ecosystem: "docker"
52+
directory: "/"
53+
schedule:
54+
interval: "weekly"
55+
commit-message:
56+
prefix: ":seedling:"
57+
labels:
58+
- "ok-to-test"

.github/workflows/ci.yaml

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
uses: actions/checkout@v3
2929
with:
3030
fetch-depth: 0
31-
- uses: ./.github/actions/setup-go
31+
- uses: actions/setup-go@v4
32+
with:
33+
go-version-file: './go.mod'
3234
- uses: actions/cache@v3
3335
with:
3436
path: hack/tools/bin
@@ -55,7 +57,9 @@ jobs:
5557
steps:
5658
- name: checkout
5759
uses: actions/checkout@v3
58-
- uses: ./.github/actions/setup-go
60+
- uses: actions/setup-go@v4
61+
with:
62+
go-version-file: './go.mod'
5963
- name: Set up QEMU
6064
uses: docker/setup-qemu-action@v2
6165
- name: Set up Docker Buildx
@@ -115,7 +119,9 @@ jobs:
115119
steps:
116120
- name: checkout
117121
uses: actions/checkout@v3
118-
- uses: ./.github/actions/setup-go
122+
- uses: actions/setup-go@v4
123+
with:
124+
go-version-file: './go.mod'
119125
- uses: actions/cache@v3
120126
with:
121127
path: hack/tools/bin
@@ -153,7 +159,9 @@ jobs:
153159
steps:
154160
- name: checkout
155161
uses: actions/checkout@v3
156-
- uses: ./.github/actions/setup-go
162+
- uses: actions/setup-go@v4
163+
with:
164+
go-version-file: './go.mod'
157165
- uses: actions/cache@v3
158166
with:
159167
path: hack/tools/bin
@@ -209,7 +217,9 @@ jobs:
209217
steps:
210218
- name: checkout
211219
uses: actions/checkout@v3
212-
- uses: ./.github/actions/setup-go
220+
- uses: actions/setup-go@v4
221+
with:
222+
go-version-file: './go.mod'
213223
- uses: actions/cache@v3
214224
with:
215225
path: hack/tools/bin
@@ -265,7 +275,9 @@ jobs:
265275
steps:
266276
- name: checkout
267277
uses: actions/checkout@v3
268-
- uses: ./.github/actions/setup-go
278+
- uses: actions/setup-go@v4
279+
with:
280+
go-version-file: './go.mod'
269281
- uses: actions/cache@v3
270282
with:
271283
path: hack/tools/bin
@@ -321,7 +333,9 @@ jobs:
321333
steps:
322334
- name: checkout
323335
uses: actions/checkout@v3
324-
- uses: ./.github/actions/setup-go
336+
- uses: actions/setup-go@v4
337+
with:
338+
go-version-file: './go.mod'
325339
- uses: actions/cache@v3
326340
with:
327341
path: hack/tools/bin
@@ -377,7 +391,9 @@ jobs:
377391
steps:
378392
- name: checkout
379393
uses: actions/checkout@v3
380-
- uses: ./.github/actions/setup-go
394+
- uses: actions/setup-go@v4
395+
with:
396+
go-version-file: './go.mod'
381397
- uses: actions/cache@v3
382398
with:
383399
path: hack/tools/bin

.github/workflows/cleanup.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
steps:
1010
- name: checkout
1111
uses: actions/checkout@v3
12-
- uses: ./.github/actions/setup-go
12+
- uses: actions/setup-go@v4
13+
with:
14+
go-version-file: './go.mod'
1315
- name: Run the cleanup tool
1416
run: go run ./cmd/ci-clean
1517
env:

.github/workflows/pr.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
18-
- uses: ./.github/actions/setup-go
18+
- uses: actions/setup-go@v4
19+
with:
20+
go-version-file: './go.mod'
1921
- uses: actions/cache@v3
2022
with:
2123
path: hack/tools/bin

.github/workflows/release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
uses: actions/checkout@v3
2222
with:
2323
fetch-depth: 0
24-
- uses: ./.github/actions/setup-go
24+
- uses: actions/setup-go@v4
25+
with:
26+
go-version-file: './go.mod'
2527
- name: Set up QEMU
2628
uses: docker/setup-qemu-action@v2
2729
- name: Set up Docker Buildx
@@ -90,7 +92,9 @@ jobs:
9092
steps:
9193
- name: Checkout code
9294
uses: actions/checkout@v3
93-
- uses: ./.github/actions/setup-go
95+
- uses: actions/setup-go@v4
96+
with:
97+
go-version-file: './go.mod'
9498
- uses: actions/cache@v3
9599
with:
96100
path: hack/tools/bin

0 commit comments

Comments
 (0)