2020-07-12 12:19:31 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-11-05 05:06:48 +01:00
|
|
|
type: docker
|
2020-09-02 15:55:41 +02:00
|
|
|
name: lint
|
2020-07-12 12:19:31 +02:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
2020-09-29 15:49:34 +02:00
|
|
|
arch: arm64
|
2020-07-12 12:19:31 +02:00
|
|
|
|
|
|
|
steps:
|
2023-03-28 23:18:23 +02:00
|
|
|
- name: helm lint
|
|
|
|
pull: always
|
|
|
|
image: alpine:3.17
|
|
|
|
commands:
|
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
|
|
|
- helm lint
|
2021-11-05 05:06:48 +01:00
|
|
|
|
2023-03-28 23:18:23 +02:00
|
|
|
- name: helm template
|
|
|
|
pull: always
|
|
|
|
image: alpine:3.17
|
|
|
|
commands:
|
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
|
|
|
- helm dependency update
|
|
|
|
- helm template --debug gitea-helm .
|
2021-12-22 17:25:32 +01:00
|
|
|
|
2023-03-28 23:18:23 +02:00
|
|
|
- name: helm unittests
|
|
|
|
pull: always
|
|
|
|
image: alpine:3.17
|
|
|
|
commands:
|
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make helm git bash
|
2023-04-14 08:45:37 +02:00
|
|
|
- helm plugin install --version 0.3.1 https://github.com/helm-unittest/helm-unittest
|
2023-03-28 23:18:23 +02:00
|
|
|
- helm dependency update
|
|
|
|
- make unittests
|
2023-01-17 17:58:10 +01:00
|
|
|
|
2023-03-28 23:18:23 +02:00
|
|
|
- name: verify readme
|
|
|
|
pull: always
|
|
|
|
image: alpine:3.17
|
|
|
|
commands:
|
|
|
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make npm git
|
|
|
|
- make readme
|
|
|
|
- git diff --exit-code --name-only README.md
|
2020-07-12 12:19:31 +02:00
|
|
|
|
2023-03-28 23:18:23 +02:00
|
|
|
- name: yaml lint
|
|
|
|
pull: always
|
|
|
|
image: cytopia/yamllint:alpine-1
|
|
|
|
commands:
|
|
|
|
- yamllint -f colored .
|