Skip to content

Commit 6ea69f0

Browse files
committed
Prep fkas directory for build
Signed-off-by: peppi-lotta <[email protected]>
1 parent 2eed825 commit 6ea69f0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/build-fkas-images-action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,31 @@ on:
66
- 'main'
77
paths:
88
- 'hack/fake-apiserver/**'
9+
- 'api/**''
910
1011
permissions:
1112
contents: read
1213
1314
jobs:
15+
prepare:
16+
name: Prepare FKAS build
17+
if: github.repository == 'metal3-io/cluster-api-provider-metal3'
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
- name: Prepare fake-apiserver
23+
run: |
24+
mkdir -p hack/fake-apiserver/capm3
25+
cp -r api/ hack/fake-apiserver/capm3
26+
cd hack/fake-apiserver
27+
go mod edit -replace=github.com/metal3-io/cluster-api-provider-metal3=./capm3
28+
go mod tidy
29+
1430
build_FKAS:
1531
name: Build Metal3-FKAS image
1632
if: github.repository == 'metal3-io/cluster-api-provider-metal3'
33+
needs: prepare
1734
uses: metal3-io/project-infra/.github/workflows/container-image-build.yml@main
1835
with:
1936
image-name: "metal3-fkas"

0 commit comments

Comments
 (0)