Skip to content

Commit

Permalink
Merge pull request #13 from github/ghcr-login
Browse files Browse the repository at this point in the history
Switch to docker login action
  • Loading branch information
codysoyland authored Jun 4, 2024
2 parents b4bd969 + e10d8b4 commit ffaf187
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ jobs:
echo chart_version=$version >> $GITHUB_OUTPUT
- name: Package Helm chart
run: helm package charts/${{ steps.release-details.outputs.chart_name }}
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push packaged chart to GHCR
run: helm push ${{ github.ref_name }}.tgz oci://${{ env.REGISTRY }}/${{ github.repository }}
- name: Get pushed chart digest
Expand Down

0 comments on commit ffaf187

Please sign in to comment.