Skip to content

Commit 5a65e37

Browse files
committed
chore: add deploy_key for gk repo
1 parent 3e6a537 commit 5a65e37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/nix-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ jobs:
5252
sudo -E python -c "import os; file = open('/etc/nix/nix-secret-key', 'w'); file.write(os.environ['NIX_SIGN_SECRET_KEY']); file.close()"
5353
env:
5454
NIX_SIGN_SECRET_KEY: ${{ secrets.NIX_SIGN_SECRET_KEY }}
55+
- name: Setup SSH for deploy key
56+
run: |
57+
mkdir -p ~/.ssh
58+
echo "${{ secrets.GK_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
59+
chmod 600 ~/.ssh/id_ed25519
60+
ssh-keyscan github.com >> ~/.ssh/known_hosts
5561
- name: Setup cache script
5662
if: ${{ github.secret_source == 'Actions' }}
5763
run: |

0 commit comments

Comments
 (0)