Skip to content

Commit

Permalink
(fix) Using a github app to push helm charts (#201)
Browse files Browse the repository at this point in the history
* - Using github app to push helm charts

* - For manually testing the actions
  • Loading branch information
shivaccuknox authored Jul 1, 2024
1 parent 81409f8 commit 4409c45
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/stable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

name: Stable release

on:
create:
tags:
- "v*"
on: workflow_dispatch

permissions: read-all

Expand Down Expand Up @@ -48,11 +45,18 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@v4

- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.ACTIONS_APP_ID }}
private-key: ${{ secrets.ACTIONS_APP_PRIVATE_KEY }}

- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
# Access token which can push to a different repo in the same org
token: ${{ secrets.GH_ACCESS_TOKEN }}
token: ${{ steps.generate-token.outputs.token }}
charts_dir: deployments/
# repo where charts would be published
owner: 5GSEC
Expand Down

0 comments on commit 4409c45

Please sign in to comment.