chore: update app version and image tag to v1.1.5 in Chart.yaml and v… #27
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: Publish Helm Chart | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "charts/kerbernetes/Chart.yaml" | |
| env: | |
| REGISTRY: ghcr.io | |
| HELM_CHART_PATH: charts/kerbernetes | |
| HELM_CHART_NAME: kerbernetes | |
| jobs: | |
| publish-helm-chart: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: v3.13.0 | |
| - name: Log in to GitHub Container Registry for Helm | |
| run: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: Package Helm chart | |
| run: | | |
| helm package ${{ env.HELM_CHART_PATH }} --destination ./chart-packages | |
| - name: Install ORAS CLI | |
| run: | | |
| curl -sSL https://github.com/oras-project/oras/releases/download/v1.2.2/oras_1.2.2_linux_amd64.tar.gz | tar -xz -C /usr/local/bin oras | |
| - name: Log in to GHCR for ORAS | |
| run: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | oras login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: Push Helm chart as OCI | |
| run: | | |
| helm push ./chart-packages/${{ env.HELM_CHART_NAME }}-*.tgz oci://${{ env.REGISTRY }}/${{ github.repository }} | |
| - name: Push Artifact Hub metadata | |
| run: | | |
| oras push \ | |
| ghcr.io/froz42/kerbernetes/kerbernetes:artifacthub.io \ | |
| --config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \ | |
| artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml | |