Skip to content

Commit d081b8c

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

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

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

Lines changed: 18 additions & 1 deletion
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"
@@ -22,4 +39,4 @@ jobs:
2239
secrets:
2340
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
2441
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
25-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
42+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)