From ea1755bded0aad32039bbf379594f99e3437666c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Barnouin?= Date: Wed, 23 Oct 2024 18:19:15 +0200 Subject: [PATCH] Test CI : ssh connection --- .forgejo/workflows/demo.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 0a6c1a1..9cb9f6e 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -6,12 +6,14 @@ jobs: container: image: nixos/nix:2.24.9 steps: - - run: | - ls -alh - nix-shell -p git + - name: make ssh connection + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Clone repo and connect to ssh + run: | + nix-shell -p git ssh-agents git clone https://"${{ vars.GIT_USER }}":"${{ vars.GIT_PASS }}"@git.le43.eu/tbarnouin/nixos-hypervisor cd nixos-hypervisor - nix-shell -p ssh-agents - eval $(ssh-agent -s) ssh-add ${{ secrets.SSH_PRIVATE_KEY }} ssh tbarnouin@192.168.1.40 echo "All set !"