File tree 1 file changed +33
-0
lines changed
1 file changed +33
-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
+ steps :
16
+ - name : Install Kind
17
+ run : |
18
+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64
19
+ chmod +x ./kind
20
+ mv ./kind /usr/local/bin
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 : actions/checkout@v3
30
+ - name : Build and Push custom KIND node image
31
+ run : |
32
+ kind build node-image --image ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }} .
33
+ docker push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
You can’t perform that action at this time.
0 commit comments