use sandbox path to get SSH key
This commit is contained in:
parent
01852ed4bd
commit
d1b5bf9099
3
main.nix
3
main.nix
|
@ -52,13 +52,12 @@ in
|
|||
artiqpkgs.openocd
|
||||
pkgs.iputils
|
||||
];
|
||||
sshKey = /var/lib/hydra/queue-runner/.ssh/id_rsa;
|
||||
phases = [ "buildPhase" ];
|
||||
buildPhase =
|
||||
''
|
||||
export HOME=`mktemp -d`
|
||||
mkdir $HOME/.ssh
|
||||
cp ${sshKey} $HOME/.ssh/id_rsa
|
||||
cp /opt/hydra_id_rsa $HOME/.ssh/id_rsa
|
||||
artiq_flash -t kc705 -H rpi
|
||||
sleep 15
|
||||
# ping: socket: Operation not permitted
|
||||
|
|
Loading…
Reference in New Issue