Skip to content

Commit 8380790

Browse files
committed
Merge tag 'v0.10.0' from upstream into openshift/konflux branch
2 parents e9360c3 + 3f8de1e commit 8380790

File tree

7,048 files changed

+1264903
-520932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,048 files changed

+1264903
-520932
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ on:
77
types: [published]
88
pull_request:
99
env:
10-
GO_VERSION: '1.24'
11-
NIX_VERSION: '2.25.0'
10+
NIX_VERSION: '2.30.1'
1211
BOM_VERSION: v0.6.0
1312
concurrency:
1413
group: ${{ github.workflow }}-${{ github.ref }}
@@ -23,12 +22,20 @@ jobs:
2322
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2423
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
2524
with:
26-
go-version: ${{ env.GO_VERSION }}
25+
go-version-file: ./go.mod
2726
- run: make test-unit
2827
- run: make verify-go-lint
2928

3029
nix:
31-
runs-on: ubuntu-22.04
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
arch:
34+
- amd64
35+
- arm64
36+
- ppc64le
37+
runs-on: ubuntu-24.04
38+
name: nix / ${{ matrix.arch }}
3239
steps:
3340
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3441
- uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v28
@@ -39,15 +46,45 @@ jobs:
3946
name: security-profiles-operator
4047
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
4148
pushFilter: security-profiles-operator
42-
- run: make nix
49+
- run: make nix-${{ matrix.arch }}
4350
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
4451
with:
45-
name: build
46-
path: build.tar.gz
52+
name: build-${{ matrix.arch }}
53+
path: build/${{ matrix.arch }}
4754

4855
nix-spoc:
56+
strategy:
57+
fail-fast: false
58+
matrix:
59+
arch:
60+
- amd64
61+
- arm64
62+
- ppc64le
63+
runs-on: ubuntu-24.04
64+
name: nix / spoc / ${{ matrix.arch }}
65+
steps:
66+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
67+
- uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v28
68+
with:
69+
install_url: https://releases.nixos.org/nix/nix-${{ env.NIX_VERSION }}/install
70+
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
71+
with:
72+
name: security-profiles-operator
73+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
74+
pushFilter: security-profiles-operator
75+
- run: nix-build nix/default-${{ matrix.arch }}.nix
76+
77+
nix-spoc-push:
78+
strategy:
79+
fail-fast: false
80+
matrix:
81+
arch:
82+
- amd64
83+
- arm64
84+
- ppc64le
4985
if: github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags')
50-
runs-on: ubuntu-22.04
86+
name: nix / spoc / push / ${{ matrix.arch }}
87+
runs-on: ubuntu-24.04
5188
permissions:
5289
contents: write # required for updating the release
5390
id-token: write # required for sigstore signing
@@ -66,10 +103,10 @@ jobs:
66103
sudo curl -sSfL --retry 5 --retry-delay 3 -o /usr/bin/bom \
67104
https://github.com/kubernetes-sigs/bom/releases/download/${{ env.BOM_VERSION }}/bom-amd64-linux
68105
sudo chmod +x /usr/bin/bom
69-
- run: make nix-spoc
106+
- run: make nix-spoc-${{ matrix.arch }}
70107
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
71108
with:
72-
name: spoc
109+
name: spoc-${{ matrix.arch }}
73110
path: |
74111
build/*
75112
- uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
@@ -79,12 +116,12 @@ jobs:
79116
build/*
80117
81118
bpf:
82-
runs-on: ubuntu-22.04
119+
runs-on: ubuntu-24.04
83120
steps:
121+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
84122
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
85123
with:
86-
go-version: ${{ env.GO_VERSION }}
87-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
124+
go-version-file: ./go.mod
88125
- uses: cachix/install-nix-action@3715ab1a11cac9e991980d7b4a28d80c7ebdd8f9 # v28
89126
with:
90127
install_url: https://releases.nixos.org/nix/nix-${{ env.NIX_VERSION }}/install
@@ -96,7 +133,7 @@ jobs:
96133
- run: make verify-bpf
97134

98135
build-image:
99-
runs-on: ubuntu-22.04
136+
runs-on: ubuntu-24.04
100137
steps:
101138
- name: Remove unnecessary files
102139
run: |
@@ -137,7 +174,7 @@ jobs:
137174
push: ${{ github.ref == 'refs/heads/main' }}
138175

139176
operator-image:
140-
runs-on: ubuntu-22.04
177+
runs-on: ubuntu-24.04
141178
steps:
142179
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
143180
- name: Set up Docker Buildx
@@ -171,7 +208,7 @@ jobs:
171208
load: true
172209

173210
ubi-image:
174-
runs-on: ubuntu-22.04
211+
runs-on: ubuntu-24.04
175212
steps:
176213
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
177214
- name: Set up Docker Buildx

.github/workflows/olm_tests.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ on:
55
- main
66
pull_request:
77
env:
8-
GO_VERSION: '1.24'
9-
KIND_IMG_TAG: v1.32.0
8+
KIND_IMG_TAG: v1.32.2
109
concurrency:
1110
group: ${{ github.workflow }}-${{ github.ref }}
1211
cancel-in-progress: true
@@ -16,7 +15,7 @@ permissions: {}
1615
jobs:
1716
main:
1817
name: tests
19-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-24.04
2019

2120
steps:
2221
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -29,7 +28,7 @@ jobs:
2928
3029
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
3130
with:
32-
go-version: ${{ env.GO_VERSION }}
31+
go-version-file: ./go.mod
3332

3433
- name: Install dependencies
3534
run: |

.github/workflows/test.yml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
branches:
55
- main
66
pull_request:
7-
env:
8-
GO_VERSION: '1.24'
97
concurrency:
108
group: ${{ github.workflow }}-${{ github.ref }}
119
cancel-in-progress: true
@@ -19,7 +17,7 @@ jobs:
1917
# write security-events is required by all codeql-action workflows
2018
security-events: write
2119

22-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-24.04
2321
steps:
2422
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2523
- uses: github/codeql-action/init@c4fb451437765abf5018c6fbf22cce1a7da1e5cc # v2.17.1
@@ -29,12 +27,12 @@ jobs:
2927
- uses: github/codeql-action/analyze@c4fb451437765abf5018c6fbf22cce1a7da1e5cc # v2.17.1
3028

3129
coverage:
32-
runs-on: ubuntu-22.04
30+
runs-on: ubuntu-24.04
3331
steps:
3432
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3533
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
3634
with:
37-
go-version: ${{ env.GO_VERSION }}
35+
go-version-file: ./go.mod
3836
- name: Install dependencies
3937
run: sudo hack/install-packages
4038
- run: make test-unit
@@ -45,7 +43,7 @@ jobs:
4543
verbose: true
4644

4745
image:
48-
runs-on: ubuntu-22.04
46+
runs-on: ubuntu-24.04
4947
steps:
5048
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5149
- run: hack/install-crun
@@ -60,8 +58,7 @@ jobs:
6058

6159
e2e-fedora:
6260
needs: image
63-
# TODO: move back to 22.04 when https://github.com/actions/runner-images/issues/10678 got resolved
64-
runs-on: ubuntu-20.04
61+
runs-on: ubuntu-24.04
6562
timeout-minutes: 90
6663
env:
6764
RUN: ./hack/ci/run-fedora.sh
@@ -96,8 +93,7 @@ jobs:
9693
9794
e2e-ubuntu:
9895
needs: image
99-
# TODO: move back to 22.04 when https://github.com/actions/runner-images/issues/10678 got resolved
100-
runs-on: ubuntu-20.04
96+
runs-on: ubuntu-24.04
10197
timeout-minutes: 90
10298
env:
10399
RUN: ./hack/ci/run-ubuntu.sh
@@ -132,8 +128,7 @@ jobs:
132128
133129
e2e-flatcar:
134130
needs: image
135-
# TODO: move back to 22.04 when https://github.com/actions/runner-images/issues/10678 got resolved
136-
runs-on: ubuntu-20.04
131+
runs-on: ubuntu-24.04
137132
timeout-minutes: 90
138133
env:
139134
RUN: ./hack/ci/run-flatcar.sh
@@ -174,8 +169,7 @@ jobs:
174169
175170
e2e-spoc:
176171
needs: image
177-
# TODO: move back to 22.04 when https://github.com/actions/runner-images/issues/10678 got resolved
178-
runs-on: ubuntu-20.04
172+
runs-on: ubuntu-24.04
179173
timeout-minutes: 90
180174
env:
181175
RUN: ./hack/ci/run-debian.sh
@@ -205,8 +199,7 @@ jobs:
205199

206200
e2e-seccomp-profile:
207201
needs: image
208-
# TODO: move back to 22.04 when https://github.com/actions/runner-images/issues/10678 got resolved
209-
runs-on: ubuntu-20.04
202+
runs-on: ubuntu-24.04
210203
timeout-minutes: 90
211204
env:
212205
RUN: ./hack/ci/run-debian.sh
@@ -236,8 +229,7 @@ jobs:
236229

237230
e2e-apparmor-profile:
238231
needs: image
239-
# TODO: move back to 22.04 when https://github.com/actions/runner-images/issues/10678 got resolved
240-
runs-on: ubuntu-20.04
232+
runs-on: ubuntu-24.04
241233
timeout-minutes: 90
242234
env:
243235
RUN: ./hack/ci/run-debian.sh
@@ -266,7 +258,7 @@ jobs:
266258
run: $RUN hack/ci/e2e-apparmor.sh
267259

268260
typos:
269-
runs-on: ubuntu-22.04
261+
runs-on: ubuntu-24.04
270262
steps:
271263
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
272264
- uses: crate-ci/typos@9d890159570d5018df91fedfa40b4730cd4a81b1 # v1.28.4

0 commit comments

Comments
 (0)