feat: update the github action (#27) #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Helm Chart | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'charts/**' | |
permissions: | |
packages: write | |
env: | |
OCI_URL: ghcr.io/openkcm | |
jobs: | |
release-chart: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-tags: true | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout build (taskfiles) repo | |
run: | | |
git clone https://github.com/openkcm/build.git ./hack/common | |
- name: Install Task | |
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 #v2.0.0 | |
with: | |
version: 3.x | |
- name: Package and Push Helm Charts | |
run: | | |
task build:helm:all --verbose |