test: try k3s
This commit is contained in:
parent
0b5034b40f
commit
7ce3793b25
2 changed files with 39 additions and 13 deletions
20
.forgejo/actions/setup-k3s/action.yml
Normal file
20
.forgejo/actions/setup-k3s/action.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# action.yml
|
||||||
|
name: setup-k3s
|
||||||
|
description: 'setup k3s'
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'k3s version'
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: 'composite'
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
name: install k3s
|
||||||
|
run: |
|
||||||
|
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=${INPUT_VERSION} K3S_KUBECONFIG_MODE=640 sh -s - server
|
||||||
|
echo "KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> $GITHUB_ENV
|
||||||
|
- shell: bash
|
||||||
|
name: check k3s
|
||||||
|
run: kubectl cluster-info
|
|
@ -78,12 +78,14 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
k8s:
|
# k8s:
|
||||||
# from https://hub.docker.com/r/kindest/node/tags
|
# # from https://hub.docker.com/r/kindest/node/tags
|
||||||
- v1.27.16 # renovate: kindest
|
# - v1.27.16 # renovate: kindest
|
||||||
- v1.28.13 # renovate: kindest
|
# - v1.28.13 # renovate: kindest
|
||||||
- v1.29.8 # renovate: kindest
|
# - v1.29.8 # renovate: kindest
|
||||||
- v1.30.4 # renovate: kindest
|
# - v1.30.4 # renovate: kindest
|
||||||
|
k3s:
|
||||||
|
- v1.30.3+k3s1 # renovate: k3s
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: cat /etc/os-release
|
- run: cat /etc/os-release
|
||||||
|
@ -107,14 +109,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: ${{ env.HELM_CHART_TESTING_VERSION }}
|
version: ${{ env.HELM_CHART_TESTING_VERSION }}
|
||||||
|
|
||||||
- uses: ./.forgejo/actions/setup-docker
|
- uses: ./.forgejo/actions/setup-k3s
|
||||||
|
|
||||||
- name: Create kind cluster
|
|
||||||
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
|
|
||||||
with:
|
with:
|
||||||
node_image: kindest/node:${{ matrix.k8s }}
|
version: ${{ matrix.k3s }}
|
||||||
kubectl_version: ${{ env.KUBECTL_VERSION }}
|
|
||||||
version: ${{ env.KIND_VERSION }}
|
# - uses: ./.forgejo/actions/setup-docker
|
||||||
|
|
||||||
|
# - name: Create kind cluster
|
||||||
|
# uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
|
||||||
|
# with:
|
||||||
|
# node_image: kindest/node:${{ matrix.k8s }}
|
||||||
|
# kubectl_version: ${{ env.KUBECTL_VERSION }}
|
||||||
|
# version: ${{ env.KIND_VERSION }}
|
||||||
|
|
||||||
- run: kubectl get no -o wide
|
- run: kubectl get no -o wide
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue