Skip to content

Commit 628cbb3

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

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build_push.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
- name: Install Kind
18+
run: |
19+
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.24.0/kind-linux-amd64
20+
chmod +x ./kind
21+
mv ./kind /usr/local/bin
22+
- name: Set up Docker
23+
uses: docker/setup-buildx-action@v1
24+
- name: Login to Docker
25+
uses: docker/login-action@v1
26+
with:
27+
registry: ghcr.io
28+
username: ${{ secrets.GH_USERNAME }}
29+
password: ${{ secrets.GH_TOKEN }}
30+
- uses: engineerd/[email protected]
31+
with:
32+
version: "v0.24.0"
33+
- name: Build and Push custom KIND node image
34+
run: |
35+
kind build node-image --image ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }} .
36+
docker push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}

0 commit comments

Comments
 (0)