Skip to content

Commit

Permalink
fix helm-release chart path (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomac authored May 2, 2024
1 parent 28e72f0 commit a0f85be
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/helm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,18 @@ env:
CR_PACKAGE_PATH: "${{ github.workspace }}/.cr-release-packages"
CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool"
CR_VERSION: "1.5.0"
CHART_DIR: "${{ github.workspace }}/charts/beyla"

jobs:
setup:
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.list-changed.outputs.changed }}
chartpath: ${{ steps.list-changed.outputs.chartpath }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
path: source

- name: Install chart-testing
uses: helm/chart-testing-action@v2

release:
needs: [setup]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,12 +60,12 @@ jobs:
id: parse-chart
run: |
cd source
changed="${{ needs.setup.outputs.chartpath }}"
description=$(yq ".description" < ${changed}/Chart.yaml)
name=$(yq ".name" < ${changed}/Chart.yaml)
version=$(yq ".version" < ${changed}/Chart.yaml)
charpath="${{ env.CHART_DIR }}"
description=$(yq ".description" < ${{ env.CHART_DIR }}/Chart.yaml)
name=$(yq ".name" < ${{ env.CHART_DIR }}/Chart.yaml)
version=$(yq ".version" < ${{ env.CHART_DIR }}/Chart.yaml)
echo "chartpath=${changed}" >> $GITHUB_OUTPUT
echo "chartpath=${charpath}" >> $GITHUB_OUTPUT
echo "desc=${description}" >> $GITHUB_OUTPUT
echo "tagname=v${version}" >> $GITHUB_OUTPUT
echo "packagename=${name}-${version}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit a0f85be

Please sign in to comment.