Skip to content

chore: upgrade ubuntu from 20.04 to latest #1234

chore: upgrade ubuntu from 20.04 to latest

chore: upgrade ubuntu from 20.04 to latest #1234

Workflow file for this run

name: CI
on:
pull_request:
branches:
- "*"
push:
jobs:
helm:
name: Helm chart
runs-on: ubuntu-latest
strategy:
matrix:
k8s: ["v1.23.17@sha256:14d0a9a892b943866d7e6be119a06871291c517d279aedb816a4b4bc0ec0a5b3", "v1.24.17@sha256:bad10f9b98d54586cba05a7eaa1b61c6b90bfc4ee174fdc43a7b75ca75c95e51"]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Lint
run: |
docker run --rm --interactive --network host \
--name ct-lint \
--volume $PWD:/workdir \
--workdir /workdir/charts/apisix \
quay.io/helmpack/chart-testing:v3.4.0 sh -c 'helm dependency update \
&& cd ../.. \
&& helm repo add bitnami https://charts.bitnami.com/bitnami \
&& helm repo add apisix https://charts.apiseven.com \
&& ct lint \
--charts charts/apisix \
--charts charts/apisix-dashboard \
--charts charts/apisix-ingress-controller'
- name: fix permissions
run: |
sudo mkdir -p $HOME/.kube
sudo chmod -R 777 $HOME/.kube
- name: Create Kubernetes ${{ matrix.k8s }} cluster
id: kind
uses: ./.github/actions/setup-kind
with:
version: v0.22.0
config: test/e2e/kind.yaml
image: kindest/node:${{ matrix.k8s }}
- name: Test
env:
KIND_CLUSTER_NAME: kind
SKIP_CLUSTER_CREATION: true
run: |
kind get kubeconfig > $HOME/.kube/kind-config-kind
docker run --rm --interactive --network host \
--name ct \
--volume $HOME/.kube/kind-config-kind:/root/.kube/config \
--volume $PWD:/workdir \
--workdir /workdir/charts/apisix \
quay.io/helmpack/chart-testing:v3.4.0 sh -c 'helm dependency update \
&& cd ../.. \
&& helm repo add bitnami https://charts.bitnami.com/bitnami \
&& helm repo add apisix https://charts.apiseven.com \
&& ct install \
--charts charts/apisix'
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.19.2'
- name: Run helm-docs
run: |
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/[email protected]
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
DIFF=$(git diff ${GITHUB_WORKSPACE}/charts/**/*md)
if [ ! -z "$DIFF" ]; then
echo "Please use helm-docs in your clone, of your fork, of the project, and commit a updated README.md for the chart."
fi
git diff --exit-code
rm -f ./helm-docs