ci: fix publish

This commit is contained in:
Michael Kriese 2023-01-03 17:29:02 +01:00
parent 0cc9088ce2
commit c7d81831a8
No known key found for this signature in database
GPG key ID: B83F553A0724D44E

View file

@ -4,6 +4,8 @@ depends_on:
- lint
when:
event:
- tag
tag: v*
pipeline:
@ -12,7 +14,7 @@ pipeline:
pull: true
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
- apk add --no-cache curl
- apk add --no-cache git
- helm dependency update
- rm -rf tmp/
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
@ -20,6 +22,7 @@ pipeline:
- git checkout pages
- helm repo index tmp/ --merge index.yaml
- mv -f tmp/* .
- git add -A
- 'git commit -m "chore: update charts to ${CI_COMMIT_TAG}"'
- 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