Skip to content

Commit 39a166c

Browse files
committed
tmp: add kind build
Signed-off-by: Sunyanan Choochotkaew <[email protected]>
1 parent 7cfac39 commit 39a166c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build_push.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Kubernetes image
2+
3+
on:
4+
push:
5+
6+
env:
7+
VERSION: "kep-5075"
8+
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
env:
14+
IMAGE_NAME: kindest/node
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-go@v2
18+
with:
19+
go-version: '1.24.0'
20+
- name: Set up Docker
21+
uses: docker/setup-buildx-action@v1
22+
- name: Login to Docker
23+
uses: docker/login-action@v1
24+
with:
25+
registry: ghcr.io
26+
username: ${{ secrets.GH_USERNAME }}
27+
password: ${{ secrets.GH_TOKEN }}
28+
- uses: engineerd/[email protected]
29+
with:
30+
version: "v0.24.0"
31+
- name: Build and Push custom KIND node image
32+
run: |
33+
kind build node-image --image ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }} .
34+
docker push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}

0 commit comments

Comments
 (0)