diff --git a/.woodpecker/e2e.yml b/.woodpecker/e2e.yml index e3a36f3..de2f429 100644 --- a/.woodpecker/e2e.yml +++ b/.woodpecker/e2e.yml @@ -10,7 +10,8 @@ when: services: docker: - image: docker:dind + image: docker:24.0.7-dind + pull: true environment: DOCKER_TLS_CERTDIR: '' @@ -18,16 +19,16 @@ matrix: k8s: # from https://hub.docker.com/r/kindest/node/tags # - v1.25.3 # renovate: kindest - - v1.26.2 # renovate: kindest + - v1.28.0 # renovate: kindest pipeline: create-cluster: - image: alpine:3.17.2 + image: alpine:3.18.5 pull: true environment: DOCKER_HOST: tcp://docker:2375 commands: - - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community docker-cli kind + - apk add docker-cli kind - export KUBECONFIG=$${CI_WORKSPACE}/kube.config - sleep 15s - docker info @@ -38,10 +39,9 @@ pipeline: - sed -i -E -e 's/localhost|0\.0\.0\.0/docker/g' $${KUBECONFIG} chart-testing: - image: alpine:3.17.2 + image: quay.io/helmpack/chart-testing:v3.10.1 pull: true commands: - - apk add --no-cache helm - - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing kubectl - export KUBECONFIG=$${CI_WORKSPACE}/kube.config - kubectl get no -o wide + - ct install --config tools/ct.yaml --charts-dirs ./ diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 621a9b4..75c72a2 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -54,3 +54,9 @@ pipeline: commands: - apk add yamllint - yamllint -f colored . + + chart-testing: + image: quay.io/helmpack/chart-testing:v3.10.1 + pull: true + commands: + - ct lint --config tools/ct.yaml --charts-dirs ./ \ No newline at end of file diff --git a/.woodpecker/release-version.yml b/.woodpecker/release-version.yml index 02aa528..382808e 100644 --- a/.woodpecker/release-version.yml +++ b/.woodpecker/release-version.yml @@ -2,6 +2,7 @@ platform: linux/amd64 depends_on: - lint + - e2e when: event: diff --git a/tools/ct.yml b/tools/ct.yml new file mode 100644 index 0000000..c9ee10f --- /dev/null +++ b/tools/ct.yml @@ -0,0 +1,4 @@ +#helm-extra-args: --timeout 600s +check-version-increment: false +debug: true +target-branch: main \ No newline at end of file