ci: add ssh key
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
Test templates, puts into cache / nix (nix-runner) (push) Successful in 5m1s

This commit is contained in:
Deepak Mallubhotla 2025-03-22 19:52:03 -05:00
parent 1775d628c5
commit f2e458950a
Signed by: deepak
GPG Key ID: 47831B15427F5A55

View File

@ -10,6 +10,20 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install SSH keys
uses: shimataro/ssh-key-action@d4fffb50872869abe2d9a9098a6d9c5aa7d16be4
with:
key: ${{ secrets.SSH_GITEA_SSH_KEY }}
name: gitea_action
known_hosts: ${{ secrets.SSH_GITEA_KNOWN_HOSTS }}
- name: Agent SSH keys
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_GITEA_SSH_KEY }}
# name: gitea_action
# known_hosts: ${{ secrets.SSH_GITEA_KNOWN_HOSTS }}
#- name: Fix SSH key
# run: sed -i 's/\r$//g' /root/.ssh/gitea_action
- uses: cachix/install-nix-action@v20
- run: nix flake update
- run: nix flake check