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
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,43 @@ jobs:
gh release upload "$VERSION" --clobber \
bin/kelos-* \
bin/checksums.txt

publish-helm-chart:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: release
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

- name: Install Helm
uses: azure/setup-helm@v4
with:
version: 3.20.1

- name: Determine version
id: version
run: |
# Extract version without 'v' prefix (e.g., v1.2.3 -> 1.2.3)
VERSION=${GITHUB_REF#refs/tags/v}
echo "version=$VERSION" >> "$GITHUB_OUTPUT"

- name: Login to GHCR
run: |
helm registry login ghcr.io \
-u ${{ github.actor }} \
-p ${{ secrets.GITHUB_TOKEN }}

- name: Package Helm chart
run: |
mkdir -p /tmp/charts
helm package internal/manifests/charts/kelos \
--version ${{ steps.version.outputs.version }} \
--app-version ${{ github.ref_name }} \
--destination /tmp/charts

- name: Push Helm chart to GHCR
run: |
helm push /tmp/charts/kelos-${{ steps.version.outputs.version }}.tgz oci://ghcr.io/kelos-dev/charts
Loading