Skip to content

Commit 8900f0f

Browse files
committed
Build KinD node image for ARM64
Runs on Equinix c3.large.arm64 Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
1 parent 504fc47 commit 8900f0f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build-kind.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,43 @@ jobs:
5252
run: |
5353
docker tag kindest/node:latest ghcr.io/fluxcd/kindest/node:${{ steps.prep.outputs.VERSION }}-amd64
5454
docker push ghcr.io/fluxcd/kindest/node:${{ steps.prep.outputs.VERSION }}-amd64
55+
k8s-node-arm64:
56+
# Hosted on Equinix
57+
# Docs: https://github.com/fluxcd/flux2/tree/main/.github/runners
58+
runs-on: [self-hosted, Linux, ARM64, equinix]
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v4
62+
- name: Prepare
63+
id: prep
64+
run: |
65+
VERSION="${{ github.event.inputs.version }}"
66+
if [[ -z "$VERSION" ]]; then
67+
VERSION="v1.27.13"
68+
fi
69+
echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
70+
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
71+
- name: Setup Go
72+
uses: actions/setup-go@v5
73+
with:
74+
go-version: 1.22.x
75+
- name: Checkout
76+
uses: actions/checkout@v4
77+
with:
78+
repository: kubernetes/kubernetes
79+
ref: ${{ steps.prep.outputs.VERSION }}
80+
path: kubernetes
81+
- name: Build node image
82+
run: |
83+
cd $GITHUB_WORKSPACE/kubernetes
84+
kind build node-image
85+
- name: Login to GitHub Container Registry
86+
uses: docker/login-action@v3
87+
with:
88+
registry: ghcr.io
89+
username: fluxcdbot
90+
password: ${{ secrets.GHCR_TOKEN }}
91+
- name: Push node image
92+
run: |
93+
docker tag kindest/node:latest ghcr.io/fluxcd/kindest/node:${{ steps.prep.outputs.VERSION }}-arm64
94+
docker push ghcr.io/fluxcd/kindest/node:${{ steps.prep.outputs.VERSION }}-arm64

0 commit comments

Comments
 (0)