2020-07-12 10:19:31 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-11-05 12:06:48 +08:00
|
|
|
type: docker
|
2020-09-02 13:55:41 +00:00
|
|
|
name: lint
|
2020-07-12 10:19:31 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
2020-09-29 13:49:34 +00:00
|
|
|
arch: arm64
|
2020-07-12 10:19:31 +00:00
|
|
|
|
|
|
|
steps:
|
2023-03-29 05:18:23 +08: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 12:06:48 +08:00
|
|
|
|
2023-03-29 05:18:23 +08: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-23 00:25:32 +08:00
|
|
|
|
2023-03-29 05:18:23 +08: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 14:45:37 +08:00
|
|
|
- helm plugin install --version 0.3.1 https://github.com/helm-unittest/helm-unittest
|
2023-03-29 05:18:23 +08:00
|
|
|
- helm dependency update
|
|
|
|
- make unittests
|
2023-01-18 00:58:10 +08:00
|
|
|
|
2023-03-29 05:18:23 +08: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 10:19:31 +00:00
|
|
|
|
2023-03-29 05:18:23 +08:00
|
|
|
- name: yaml lint
|
|
|
|
pull: always
|
|
|
|
image: cytopia/yamllint:alpine-1
|
|
|
|
commands:
|
|
|
|
- yamllint -f colored .
|