ci: generate gitea release
This commit is contained in:
parent
9e6cc229ca
commit
bfa12194a2
2 changed files with 24 additions and 5 deletions
|
@ -11,7 +11,7 @@ when:
|
|||
|
||||
pipeline:
|
||||
deps:
|
||||
image: alpine:3.17
|
||||
image: alpine:3.17.0
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
||||
|
@ -19,21 +19,21 @@ pipeline:
|
|||
- helm dependency build
|
||||
|
||||
helm-lint:
|
||||
image: alpine:3.17
|
||||
image: alpine:3.17.0
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
||||
- helm lint
|
||||
|
||||
helm-template:
|
||||
image: alpine:3.17
|
||||
image: alpine:3.17.0
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
||||
- helm template --debug gitea-helm .
|
||||
|
||||
verify-readme:
|
||||
image: alpine:3.17
|
||||
image: alpine:3.17.0
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make npm git
|
||||
|
|
|
@ -10,7 +10,7 @@ when:
|
|||
|
||||
pipeline:
|
||||
generate-chart:
|
||||
image: alpine:3.17
|
||||
image: alpine:3.17.0
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
||||
|
@ -19,6 +19,25 @@ pipeline:
|
|||
- helm dependency build
|
||||
- rm -rf tmp/
|
||||
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
|
||||
secrets:
|
||||
- token
|
||||
|
||||
publish-release:
|
||||
image: plugins/gitea-release
|
||||
pull: true
|
||||
settings:
|
||||
base_url: https://codeberg.org
|
||||
api_key:
|
||||
from_secret: token
|
||||
files: tmp/*
|
||||
title: ${CI_COMMIT_TAG##v}
|
||||
file_exists: fail
|
||||
|
||||
publish-chart:
|
||||
image: alpine:3.17.0
|
||||
pull: true
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing 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:
|
||||
|
|
Loading…
Reference in a new issue