ci: use alpine for yamllint (#125)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/125
This commit is contained in:
Michael Kriese 2023-04-17 10:21:27 +00:00
parent 43a9b4a677
commit 07bbc8debf
3 changed files with 11 additions and 8 deletions

View file

@ -14,28 +14,28 @@ pipeline:
image: alpine:3.17.3 image: alpine:3.17.3
pull: true pull: true
commands: commands:
- apk add --no-cache helm - apk add helm
- helm dependency build - helm dependency build
helm-lint: helm-lint:
image: alpine:3.17.3 image: alpine:3.17.3
pull: true pull: true
commands: commands:
- apk add --no-cache helm - apk add helm
- helm lint - helm lint
helm-template: helm-template:
image: alpine:3.17.3 image: alpine:3.17.3
pull: true pull: true
commands: commands:
- apk add --no-cache helm - apk add helm
- helm template --debug gitea-helm . - helm template --debug gitea-helm .
helm-unittests: helm-unittests:
image: alpine:3.17.3 image: alpine:3.17.3
pull: true pull: true
commands: commands:
- apk add --no-cache make helm git bash - apk add make helm git bash
- helm plugin install --version 0.3.1 https://github.com/helm-unittest/helm-unittest - helm plugin install --version 0.3.1 https://github.com/helm-unittest/helm-unittest
- helm dependency update - helm dependency update
- make unittests - make unittests
@ -44,12 +44,13 @@ pipeline:
image: alpine:3.17.3 image: alpine:3.17.3
pull: true pull: true
commands: commands:
- apk add --no-cache make nodejs npm git - apk add make nodejs npm git
- make readme - make readme
- git diff --exit-code --name-only README.md - git diff --exit-code --name-only README.md
yaml-lint: yaml-lint:
image: cytopia/yamllint:alpine-1 image: alpine:3.17.3
pull: true pull: true
commands: commands:
- apk add yamllint
- yamllint -f colored . - yamllint -f colored .

View file

@ -13,7 +13,7 @@ pipeline:
image: alpine:3.17.3 image: alpine:3.17.3
pull: true pull: true
commands: commands:
- apk add --no-cache git nodejs npm helm - apk add git nodejs npm helm
- helm dependency build - helm dependency build
- rm -rf tmp/ - rm -rf tmp/
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./ - helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
@ -38,7 +38,7 @@ pipeline:
image: alpine:3.17.3 image: alpine:3.17.3
pull: true pull: true
commands: commands:
- apk add --no-cache helm - apk add helm
- echo $${TOKEN} | helm registry login -u viceice --password-stdin codeberg.org/forgejo-contrib - echo $${TOKEN} | helm registry login -u viceice --password-stdin codeberg.org/forgejo-contrib
- helm push tmp/forgejo-${CI_COMMIT_TAG##v}.tgz oci://codeberg.org/forgejo-contrib - helm push tmp/forgejo-${CI_COMMIT_TAG##v}.tgz oci://codeberg.org/forgejo-contrib
secrets: secrets:

View file

@ -36,6 +36,7 @@
], ],
"regexManagers": [ "regexManagers": [
{ {
"description": "Update forgeo version in chart",
"fileMatch": ["^Chart\\.yaml$"], "fileMatch": ["^Chart\\.yaml$"],
"matchStrings": ["appVersion: (?<currentValue>.+?)\\s"], "matchStrings": ["appVersion: (?<currentValue>.+?)\\s"],
"depNameTemplate": "forgejo", "depNameTemplate": "forgejo",
@ -43,6 +44,7 @@
"datasourceTemplate": "docker" "datasourceTemplate": "docker"
}, },
{ {
"description": "Update helm unittest plugin",
"fileMatch": ["^\\.woodpecker/[a-z-]+\\.yml$"], "fileMatch": ["^\\.woodpecker/[a-z-]+\\.yml$"],
"matchStrings": ["helm plugin install --version (?<currentValue>.+?) https://github.com/helm-unittest/helm-unittest\\s"], "matchStrings": ["helm plugin install --version (?<currentValue>.+?) https://github.com/helm-unittest/helm-unittest\\s"],
"depNameTemplate": "helm-unittest", "depNameTemplate": "helm-unittest",