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

46 lines
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.3
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: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: woodpeckerci/plugin-gitea-release:0.2.0
2023-01-04 09:46:16 +00:00
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.3
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