diff --git a/.gitea/workflows/buildPush.yaml b/.gitea/workflows/buildPush.yaml index bb3b112..8e925a7 100644 --- a/.gitea/workflows/buildPush.yaml +++ b/.gitea/workflows/buildPush.yaml @@ -17,10 +17,17 @@ jobs: with: version: v3.14.4 - - name: Install prereq - run: | - add-apt-repository ppa:rmescandon/yq -y - apt install yq -y + - name: Get package name + id: chart_name + uses: mikefarah/yq@master + with: + cmd: yq .name Chart.yaml + + - name: Get package version + id: chart_version + uses: mikefarah/yq@master + with: + cmd: yq .version Chart.yaml - name: build helm package shell: bash @@ -28,6 +35,8 @@ jobs: REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} REPO_USERNAME: ${{ vars.REPO_USERNAME }} REPO_HOST: ${{ vars.REPO_HOST }} + CHART_NAME: ${{ steps.chart_username.outputs.result }} + CHART_VERSION: ${{ steps.chart_version.outputs.result }} run: | REPO_PATH=$(git rev-parse --show-toplevel) CHART_NAME=$(yq .version Chart.yaml)