Skip to content

Commit 71c1ce2

Browse files
committed
load deploy key
1 parent 056410e commit 71c1ce2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release-helm.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ jobs:
5858
VERSION=$(grep '^version:' ./charts/${{ inputs.chart }}/Chart.yaml | cut -d ' ' -f 2 | tr -d '"')
5959
echo "new-raw=${VERSION}" >> $GITHUB_OUTPUT
6060
61+
- name: Load push key
62+
run: |
63+
mkdir -p ~/.ssh
64+
chmod 700 ~/.ssh
65+
echo "${{ secrets.HELM_PUSH_KEY }}" > ~/.ssh/id_ed25519
66+
chmod 600 ~/.ssh/id_ed25519
67+
68+
# Use ssh instead of https (github token)
69+
git remote set-url origin [email protected]:${{ github.repository }}.git
6170
- name: Commit and push helm changes
6271
run: |
6372
git add charts/${{ inputs.chart }}/Chart.yaml

0 commit comments

Comments
 (0)