ci: add release workflow

- ref #2
This commit is contained in:
Michael Kriese 2023-01-03 17:16:46 +01:00
parent a3e07705cd
commit 0cc9088ce2
No known key found for this signature in database
GPG key ID: B83F553A0724D44E
4 changed files with 30 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
charts/ charts/
node_modules/ node_modules/
.DS_Store .DS_Store
tmp/

View file

@ -29,4 +29,6 @@ Makefile
.markdownlintignore .markdownlintignore
.markdownlint.yaml .markdownlint.yaml
.drone.yml .drone.yml
CONTRIBUTING.md CONTRIBUTING.md
.woodpecker/
tmp/

View file

@ -1,10 +1,9 @@
platform: linux/amd64 platform: linux/amd64
when: when:
event: [ push, pull_request ]
branch: branch:
exclude: exclude:
- main - pages
pipeline: pipeline:
helm-lint: helm-lint:

View file

@ -0,0 +1,25 @@
platform: linux/amd64
depends_on:
- lint
when:
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 curl
- 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 add -A
- 'git commit -m "chore: update charts to ${CI_COMMIT_TAG}"'
- git push origin pages