Skip to content

Commit

Permalink
COSI-33: Add-helm-package-to-release
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Nov 13, 2024
1 parent 0b128eb commit ffeb116
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,31 @@ jobs:
tag_name: ${{ inputs.tag }}
name: Release ${{ inputs.tag }}
generate_release_notes: true

package-helm-chart:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.16.2

- name: Package Helm Chart
run: |
helm package ./helm/scality-cosi-driver --version ${{ inputs.tag }} --app-version ${{ inputs.tag }}
- name: Upload Helm Chart as Artifact
uses: actions/upload-artifact@v4
with:
name: helm-chart
path: scality-cosi-driver-${{ inputs.tag }}.tgz
- name: Push helm chart to ghcr.io
run: helm push scality-cosi-driver-${{ inputs.tag }}.tgz oci://ghcr.io/${{ github.repository }}/helm-charts
- name: Pull the helm chart
run: helm pull oci://ghcr.io/${{ github.repository }}/helm-charts/scality-cosi-driver --version ${{ inputs.tag }}
- name: Show the helm chart
run: helm show all oci://ghcr.io/${{ github.repository }}/helm-charts/my-package --version ${{ inputs.tag }}
- name: Template the helm chart
run: helm template oci://ghcr.io/${{ github.repository }}/helm-charts/my-package --version ${{ inputs.tag }}

0 comments on commit ffeb116

Please sign in to comment.