Test CI : ssh connection
This commit is contained in:
parent
814adf0da4
commit
ea1755bded
1 changed files with 7 additions and 5 deletions
|
@ -6,12 +6,14 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: nixos/nix:2.24.9
|
image: nixos/nix:2.24.9
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: make ssh connection
|
||||||
ls -alh
|
uses: webfactory/ssh-agent@v0.9.0
|
||||||
nix-shell -p git
|
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
|
git clone https://"${{ vars.GIT_USER }}":"${{ vars.GIT_PASS }}"@git.le43.eu/tbarnouin/nixos-hypervisor
|
||||||
cd nixos-hypervisor
|
cd nixos-hypervisor
|
||||||
nix-shell -p ssh-agents
|
|
||||||
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 !"
|
||||||
|
|
Loading…
Reference in a new issue