ci: fix publish
This commit is contained in:
parent
0cc9088ce2
commit
c7d81831a8
1 changed files with 6 additions and 3 deletions
|
@ -4,6 +4,8 @@ depends_on:
|
||||||
- lint
|
- lint
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
tag: v*
|
tag: v*
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
|
@ -12,7 +14,7 @@ pipeline:
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm
|
- 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
|
- helm dependency update
|
||||||
- rm -rf tmp/
|
- rm -rf tmp/
|
||||||
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
|
- helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./
|
||||||
|
@ -20,6 +22,7 @@ pipeline:
|
||||||
- git checkout pages
|
- git checkout pages
|
||||||
- helm repo index tmp/ --merge index.yaml
|
- helm repo index tmp/ --merge index.yaml
|
||||||
- mv -f tmp/* .
|
- mv -f tmp/* .
|
||||||
- git add -A
|
- git config user.email "release@forgejo.org" ; git config user.name "Release Team"
|
||||||
- 'git commit -m "chore: update charts to ${CI_COMMIT_TAG}"'
|
- git add .
|
||||||
|
- git commit -m "update charts to ${CI_COMMIT_TAG}" -a
|
||||||
- git push origin pages
|
- git push origin pages
|
||||||
|
|
Loading…
Reference in a new issue