2023-01-03 16:16:46 +00:00
|
|
|
platform: linux/amd64
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- lint
|
|
|
|
|
|
|
|
when:
|
2023-01-03 16:29:02 +00:00
|
|
|
event:
|
|
|
|
- tag
|
2023-01-03 16:16:46 +00:00
|
|
|
tag: v*
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
generate-chart:
|
2023-01-12 08:07:19 +00:00
|
|
|
image: alpine:3.17.1
|
2023-01-03 16:16:46 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
2023-01-04 14:52:49 +00:00
|
|
|
- apk add --no-cache git nodejs npm helm
|
2023-01-03 22:26:25 +00:00
|
|
|
- helm repo add bitnami https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
|
2023-01-03 22:16:31 +00:00
|
|
|
- helm dependency build
|
2023-01-03 16:16:46 +00:00
|
|
|
- rm -rf tmp/
|
|
|
|
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
|
2023-01-04 14:41:12 +00:00
|
|
|
- npm ci
|
|
|
|
- npm run changelog "${CI_COMMIT_TAG##v}" tmp/changelog.md
|
2023-01-04 09:46:16 +00:00
|
|
|
secrets:
|
|
|
|
- token
|
|
|
|
|
|
|
|
publish-release:
|
|
|
|
image: plugins/gitea-release
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
base_url: https://codeberg.org
|
|
|
|
api_key:
|
|
|
|
from_secret: token
|
2023-01-04 15:06:32 +00:00
|
|
|
files: tmp/*.tgz
|
2023-01-04 09:46:16 +00:00
|
|
|
title: ${CI_COMMIT_TAG##v}
|
|
|
|
file_exists: fail
|
2023-01-04 14:41:12 +00:00
|
|
|
note: tmp/changelog.md
|
2023-01-04 09:46:16 +00:00
|
|
|
|
|
|
|
publish-chart:
|
2023-01-12 08:07:19 +00:00
|
|
|
image: alpine:3.17.1
|
2023-01-04 09:46:16 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
2023-01-04 14:52:49 +00:00
|
|
|
- apk add --no-cache helm
|
2023-01-03 17:19:38 +00:00
|
|
|
- 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
|
2023-01-03 17:11:38 +00:00
|
|
|
secrets:
|
|
|
|
- token
|