Skip to content

Commit

Permalink
fix helm login in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
enesonus committed Aug 14, 2023
1 parent 1234a11 commit b49096e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ jobs:
type=semver,pattern={{version}}
- name: Build and push the chart
if: matrix.name == 'public'
env:
USERNAME: ${{ github.repository_owner }}
run: |
helm registry login -u {{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
helm registry login ghcr.io -u "${USERNAME}" -p ${{ secrets.GITHUB_TOKEN }}
helm package --version {{ steps.meta_chart.outputs.tags }} ./cluster/charts/jaeger-demo
helm push jaeger-demo-{{ steps.meta_chart.outputs.tags }}.tgz ghcr.io/enesonus/jaeger-demo

0 comments on commit b49096e

Please sign in to comment.