Skip to content

Commit

Permalink
Handle helm repo authentication (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
adejanovski authored Feb 21, 2024
1 parent 41178b9 commit 851c544
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tools-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ jobs:
if: ${{ !inputs.gitRepo }}
id: download_charts
run: |
helm repo add ${{ inputs.repoName }} ${{ inputs.repoURL }}
if [ -z "${{ inputs.tokenSecret }}" ]; then
helm repo add ${{ inputs.repoName }} ${{ inputs.repoURL }}
else
helm repo add ${{ inputs.repoName }} ${{ inputs.repoURL }} --username "${{ env.GH_TOKEN }}" --password "${{ env.GH_TOKEN }}"
fi
helm repo update
helm pull ${{ inputs.repoName }}/${{ inputs.chartName }} --version ${{ inputs.chartVersion }}
mkdir -p build/${{ inputs.repoName }}
Expand Down

0 comments on commit 851c544

Please sign in to comment.