ci: lint and install

This commit is contained in:
Michael Kriese 2023-12-06 12:50:49 +01:00
parent 29d1d112d7
commit bb1d400f40
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
4 changed files with 18 additions and 7 deletions

View file

@ -10,7 +10,8 @@ when:
services: services:
docker: docker:
image: docker:dind image: docker:24.0.7-dind
pull: true
environment: environment:
DOCKER_TLS_CERTDIR: '' DOCKER_TLS_CERTDIR: ''
@ -18,16 +19,16 @@ matrix:
k8s: k8s:
# from https://hub.docker.com/r/kindest/node/tags # from https://hub.docker.com/r/kindest/node/tags
# - v1.25.3 # renovate: kindest # - v1.25.3 # renovate: kindest
- v1.26.2 # renovate: kindest - v1.28.0 # renovate: kindest
pipeline: pipeline:
create-cluster: create-cluster:
image: alpine:3.17.2 image: alpine:3.18.5
pull: true pull: true
environment: environment:
DOCKER_HOST: tcp://docker:2375 DOCKER_HOST: tcp://docker:2375
commands: 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 - export KUBECONFIG=$${CI_WORKSPACE}/kube.config
- sleep 15s - sleep 15s
- docker info - docker info
@ -38,10 +39,9 @@ pipeline:
- sed -i -E -e 's/localhost|0\.0\.0\.0/docker/g' $${KUBECONFIG} - sed -i -E -e 's/localhost|0\.0\.0\.0/docker/g' $${KUBECONFIG}
chart-testing: chart-testing:
image: alpine:3.17.2 image: quay.io/helmpack/chart-testing:v3.10.1
pull: true pull: true
commands: 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 - export KUBECONFIG=$${CI_WORKSPACE}/kube.config
- kubectl get no -o wide - kubectl get no -o wide
- ct install --config tools/ct.yaml --charts-dirs ./

View file

@ -54,3 +54,9 @@ pipeline:
commands: commands:
- apk add yamllint - apk add yamllint
- yamllint -f colored . - 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 ./

View file

@ -2,6 +2,7 @@ platform: linux/amd64
depends_on: depends_on:
- lint - lint
- e2e
when: when:
event: event:

4
tools/ct.yml Normal file
View file

@ -0,0 +1,4 @@
#helm-extra-args: --timeout 600s
check-version-increment: false
debug: true
target-branch: main