ci: lint and install
This commit is contained in:
parent
29d1d112d7
commit
bb1d400f40
4 changed files with 18 additions and 7 deletions
|
@ -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 ./
|
||||
|
|
|
@ -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 ./
|
|
@ -2,6 +2,7 @@ platform: linux/amd64
|
|||
|
||||
depends_on:
|
||||
- lint
|
||||
- e2e
|
||||
|
||||
when:
|
||||
event:
|
||||
|
|
4
tools/ct.yml
Normal file
4
tools/ct.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
#helm-extra-args: --timeout 600s
|
||||
check-version-increment: false
|
||||
debug: true
|
||||
target-branch: main
|
Loading…
Reference in a new issue