ci: generate gitea release

This commit is contained in:
Michael Kriese 2023-01-04 10:46:16 +01:00
parent 9e6cc229ca
commit bfa12194a2
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
2 changed files with 24 additions and 5 deletions

View file

@ -11,7 +11,7 @@ when:
pipeline: pipeline:
deps: deps:
image: alpine:3.17 image: alpine:3.17.0
pull: true pull: true
commands: commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
@ -19,21 +19,21 @@ pipeline:
- helm dependency build - helm dependency build
helm-lint: helm-lint:
image: alpine:3.17 image: alpine:3.17.0
pull: true pull: true
commands: commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
- helm lint - helm lint
helm-template: helm-template:
image: alpine:3.17 image: alpine:3.17.0
pull: true pull: true
commands: commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
- helm template --debug gitea-helm . - helm template --debug gitea-helm .
verify-readme: verify-readme:
image: alpine:3.17 image: alpine:3.17.0
pull: true pull: true
commands: commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make npm git - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing make npm git

View file

@ -10,7 +10,7 @@ when:
pipeline: pipeline:
generate-chart: generate-chart:
image: alpine:3.17 image: alpine:3.17.0
pull: true pull: true
commands: commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
@ -19,6 +19,25 @@ pipeline:
- 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/ ./
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 - 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: