forgejo-helm/.woodpecker/release-version.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

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