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
+ KUBE_GIT_VERSION : v1.33.0-alpha.0.2276+6f3400c755b5e1-dirty
16
+ steps :
17
+ - name : Install Kind
18
+ run : |
19
+ curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.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 : actions/checkout@v3
31
+ - name : Build and Push custom KIND node image
32
+ run : |
33
+ hack/print-workspace-status.sh
34
+ kind build node-image --image ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }} .
35
+ docker push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
You can’t perform that action at this time.
0 commit comments