Skip to content

device operator: add missing npu roles and webhook configurations (#85) #301

device operator: add missing npu roles and webhook configurations (#85)

device operator: add missing npu roles and webhook configurations (#85) #301

Workflow file for this run

name: Release Charts
on:
push:
branches:
- main
jobs:
release:
permissions:
contents: write # for helm/chart-releaser-action to push chart release and create a release
packages: write # for pushing chart to the GHCR registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
- name: Run chart-releaser
uses: helm/[email protected]
id: cr
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true
- if: ${{ steps.cr.outputs.changed_charts }}
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- if: ${{ steps.cr.outputs.changed_charts }}
name: Push Charts to GHCR
run: |
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" oci://ghcr.io/${{ github.repository }}
done