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

33 lines
947 B
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
pull: true
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
2023-01-03 16:29:02 +00:00
- apk add --no-cache git
2023-01-03 16:16:46 +00:00
- helm dependency update
- rm -rf tmp/
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
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
# - 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
secrets:
- token