Skip to content

Commit 9df0bad

Browse files
authored
fix(ci): image-scan workflow missing buildtools (#1149)
* fix(ci): image-scan workflow missing buildtools * f
1 parent 6e48943 commit 9df0bad

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/image-scan.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,31 @@ jobs:
5252
echo "image=$(cat operator/build/image)" >> $GITHUB_OUTPUT
5353
echo "chart=$(cat operator/build/chart)" >> $GITHUB_OUTPUT
5454
55+
buildtools:
56+
name: Build buildtools
57+
runs-on: ubuntu-latest
58+
steps:
59+
- name: Checkout
60+
uses: actions/checkout@v4
61+
- name: Setup go
62+
uses: actions/setup-go@v5
63+
with:
64+
go-version-file: go.mod
65+
cache-dependency-path: "**/*.sum"
66+
- name: Compile buildtools
67+
run: |
68+
make buildtools
69+
- name: Upload buildtools artifact
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: buildtools
73+
path: output/bin/buildtools
74+
5575
output-matrix:
5676
runs-on: ubuntu-latest
57-
needs: [build-deps]
77+
needs:
78+
- build-deps
79+
- buildtools
5880
outputs:
5981
matrix: ${{ steps.build-matrix.outputs.matrix }}
6082
steps:
@@ -67,6 +89,16 @@ jobs:
6789
go-version-file: go.mod
6890
cache-dependency-path: "**/*.sum"
6991

92+
- name: Download buildtools artifact
93+
uses: actions/download-artifact@v4
94+
with:
95+
name: buildtools
96+
path: output/bin
97+
98+
- name: Compile buildtools
99+
run: |
100+
make buildtools
101+
70102
- name: Update embedded-cluster-operator metadata.yaml
71103
env:
72104
IMAGES_REGISTRY_SERVER: ttl.sh

0 commit comments

Comments
 (0)