Skip to content

Commit

Permalink
fix publish workflow (publish chart)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbarbian-sap committed Jun 4, 2024
1 parent a97b280 commit b46090a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ jobs:

- name: Create package
run: |
helm package --version ${{ github.event.release.tag_name }} $CHART_DIRECTORY
chart_version=$(yq .version $CHART_DIRECTORY/Chart.yaml)
helm package --version $chart_version $CHART_DIRECTORY
- name: Login to the OCI registry
run: |
Expand All @@ -165,7 +166,8 @@ jobs:
- name: Upload package
run: |
chart_name=$(yq .name $CHART_DIRECTORY/Chart.yaml)
file=$chart_name-${{ github.event.release.tag_name }}.tgz
chart_version=$(yq .version $CHART_DIRECTORY/Chart.yaml)
file=$chart_name-$chart_version.tgz
repository=$REGISTRY/${{ github.repository }}/charts
helm --registry-config $RUNNER_TEMP/helm-config.json push $file oci://${repository,,}

0 comments on commit b46090a

Please sign in to comment.