File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
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
+ IMAGE : ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - uses : actions/setup-go@v2
19
+ with :
20
+ go-version : ' 1.24.0'
21
+ - name : Set up Docker
22
+ uses : docker/setup-buildx-action@v1
23
+ - name : Login to Docker
24
+ uses : docker/login-action@v1
25
+ with :
26
+ registry : ghcr.io
27
+ username : ${{ secrets.GH_USERNAME }}
28
+ password : ${{ secrets.GH_TOKEN }}
29
+ -
uses :
engineerd/[email protected]
30
+ with :
31
+ version : " v0.24.0"
32
+ - name : Build and Push custom KIND node image
33
+ run : |
34
+ kind build node-image --image $IMAGE .
35
+ docker push $IMAGE
You can’t perform that action at this time.
0 commit comments