mirror-forgejo-helm/.woodpecker/release-version.yml
2023-01-03 17:29:02 +01:00

28 lines
713 B
YAML

platform: linux/amd64
depends_on:
- lint
when:
event:
- tag
tag: v*
pipeline:
generate-chart:
image: alpine:3.17
pull: true
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
- apk add --no-cache git
- helm dependency update
- rm -rf tmp/
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
- git fetch origin
- git checkout pages
- helm repo index tmp/ --merge index.yaml
- mv -f tmp/* .
- git config user.email "release@forgejo.org" ; git config user.name "Release Team"
- git add .
- git commit -m "update charts to ${CI_COMMIT_TAG}" -a
- git push origin pages