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

47 lines
1.1 KiB
YAML
Raw Permalink Normal View History

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:
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/ ./
- 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
files: tmp/*.tgz
2023-01-04 09:46:16 +00:00
title: ${CI_COMMIT_TAG##v}
file_exists: fail
note: tmp/changelog.md
2023-01-04 09:46:16 +00:00
publish-chart:
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