Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,41 @@ jobs:

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

publish-helm-chart:
runs-on: ubuntu-latest
needs: [create-release, build-image]
environment: helm-publish

steps:
- name: Check out dvls-kubernetes-operator
uses: actions/checkout@v4

- name: Install Helm
uses: azure/setup-helm@v3

- name: Package chart
run: helm package chart/

- name: Check out helm-charts repository
uses: actions/checkout@v4
with:
repository: Devolutions/helm-charts
token: ${{ secrets.DEVOLUTIONSBOT_WRITE_TOKEN }}
path: helm-charts

- name: Copy chart package
run: cp dvls-kubernetes-operator-*.tgz helm-charts/

- name: Update index
working-directory: helm-charts
run: helm repo index . --url https://devolutions.github.io/helm-charts --merge index.yaml

- name: Commit and push
working-directory: helm-charts
run: |
git config user.name "devolutionsbot"
git config user.email "bot@devolutions.net"
git add dvls-kubernetes-operator/dvls-kubernetes-operator-*.tgz index.yaml
git commit -m "feat(dvls-kubernetes-operator): add version ${{ needs.create-release.outputs.version }}"
git push