Skip to content
Open
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
46 changes: 46 additions & 0 deletions .github/workflows/release-helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
# yamllint disable rule:line-length

name: Release Charts
on: # yamllint disable-line rule:truthy
push:
branches:
- master
paths:
- 'helm/snapscheduler/**'

permissions: read-all

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # to push chart release and create a release (helm/chart-releaser-action)
packages: write # needed for ghcr access
id-token: write # needed for keyless signing
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v3.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}


- name: Push chart to GHCR
run: |
helm package helm/snapscheduler
helm push snapscheduler-*.tgz oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts
Loading