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:
parent
43a9b4a677
commit
07bbc8debf
3 changed files with 11 additions and 8 deletions
|
@ -14,28 +14,28 @@ pipeline:
|
|||
image: alpine:3.17.3
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache helm
|
||||
- apk add helm
|
||||
- helm dependency build
|
||||
|
||||
helm-lint:
|
||||
image: alpine:3.17.3
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache helm
|
||||
- apk add helm
|
||||
- helm lint
|
||||
|
||||
helm-template:
|
||||
image: alpine:3.17.3
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache helm
|
||||
- apk add helm
|
||||
- helm template --debug gitea-helm .
|
||||
|
||||
helm-unittests:
|
||||
image: alpine:3.17.3
|
||||
pull: true
|
||||
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 dependency update
|
||||
- make unittests
|
||||
|
@ -44,12 +44,13 @@ pipeline:
|
|||
image: alpine:3.17.3
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache make nodejs npm git
|
||||
- apk add make nodejs npm git
|
||||
- make readme
|
||||
- git diff --exit-code --name-only README.md
|
||||
|
||||
yaml-lint:
|
||||
image: cytopia/yamllint:alpine-1
|
||||
image: alpine:3.17.3
|
||||
pull: true
|
||||
commands:
|
||||
- apk add yamllint
|
||||
- yamllint -f colored .
|
||||
|
|
|
@ -13,7 +13,7 @@ pipeline:
|
|||
image: alpine:3.17.3
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache git nodejs npm helm
|
||||
- apk add git nodejs npm helm
|
||||
- helm dependency build
|
||||
- rm -rf tmp/
|
||||
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
|
||||
|
@ -38,7 +38,7 @@ pipeline:
|
|||
image: alpine:3.17.3
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache helm
|
||||
- apk add helm
|
||||
- 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
|
||||
secrets:
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
],
|
||||
"regexManagers": [
|
||||
{
|
||||
"description": "Update forgeo version in chart",
|
||||
"fileMatch": ["^Chart\\.yaml$"],
|
||||
"matchStrings": ["appVersion: (?<currentValue>.+?)\\s"],
|
||||
"depNameTemplate": "forgejo",
|
||||
|
@ -43,6 +44,7 @@
|
|||
"datasourceTemplate": "docker"
|
||||
},
|
||||
{
|
||||
"description": "Update helm unittest plugin",
|
||||
"fileMatch": ["^\\.woodpecker/[a-z-]+\\.yml$"],
|
||||
"matchStrings": ["helm plugin install --version (?<currentValue>.+?) https://github.com/helm-unittest/helm-unittest\\s"],
|
||||
"depNameTemplate": "helm-unittest",
|
||||
|
|
Loading…
Reference in a new issue