Skip to content

Commit

Permalink
add permission to write package
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Domokos <[email protected]>
  • Loading branch information
domolitom committed Oct 21, 2024
1 parent 70dbbb7 commit e3cb277
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/update-helm-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ jobs:
fi
release:
needs: [ setup ]
needs: [setup]
runs-on: ubuntu-latest
permissions:
packages: write
env:
github_app_id: ${{ secrets.github_app_id }}
if: needs.setup.outputs.changed == 'true'
Expand Down Expand Up @@ -225,3 +227,14 @@ jobs:
run: |
cd helm-charts
"${CR_TOOL_PATH}/cr" index --config "${CR_CONFIGFILE}" --token "${{ env.AUTHTOKEN }}" --index-path "${CR_INDEX_PATH}" --package-path "${CR_PACKAGE_PATH}" --push
- name: Login to GHCR
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ env.AUTHTOKEN }}

- name: Push charts to GHCR
run: |
helm push "${{ env.CR_PACKAGE_PATH }}/${{ steps.parse-chart.outputs.packagename }}.tgz" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm-charts"

0 comments on commit e3cb277

Please sign in to comment.