Test CI : ssh connection
Some checks failed
/ test (push) Failing after 12s

This commit is contained in:
Théo Barnouin 2024-10-23 18:29:11 +02:00
parent 7f79c0a700
commit b4ace0ec3a

View file

@ -6,13 +6,13 @@ jobs:
container: container:
image: nixos/nix:2.24.9 image: nixos/nix:2.24.9
steps: steps:
- uses: https://code.forgejo.org/webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Clone repo and connect to ssh - name: Clone repo and connect to ssh
run: | run: |
nix-shell -p git ssh-agents nix-shell -p git ssh-agents
git clone https://"${{ vars.GIT_USER }}":"${{ vars.GIT_PASS }}"@git.le43.eu/tbarnouin/nixos-hypervisor git clone https://"${{ vars.GIT_USER }}":"${{ vars.GIT_PASS }}"@git.le43.eu/tbarnouin/nixos-hypervisor
cd nixos-hypervisor cd nixos-hypervisor
echo '${{ secrets.SSH_PRIVATE_KEY }}' > id_ed25519.pub
chmod 600 id_ed25519.pub
eval $(ssh-agent -s)
ssh-add ${{ secrets.SSH_PRIVATE_KEY }} ssh-add ${{ secrets.SSH_PRIVATE_KEY }}
ssh tbarnouin@192.168.1.40 echo "All set !" ssh tbarnouin@192.168.1.40 echo "All set !"