Open rsoeldner opened 6 years ago
@rsoeldner I could sucessfully evaluate and build from private repos by defining <ssh-config-file>
as a jobset input. See fetchgit for details.
EDIT: Actually that's not true. For the evaluator to work I had to copy the deploy key to ~/.ssh/id_rsa
I've just setup a single machine hydra server from here and I've added ssh keys and configs for the root user /root/.ssh/*
. I'm able to clone and ssh into my private gitlab accounts from the root account but I'm not able to get hydra to do so:
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I've set ssh-config-file=/root/.ssh/config
as an input.
Could anyone advise?
iirc for me it worked after setting public read permissions on config and key. I suspect the jobs don't run as root
@smatting thanks, it required moving the keys to /var/lib/hydra and giving permissions to the hydra user.
As I remarked in https://github.com/NixOS/nixpkgs/issues/4004#issuecomment-513152322, I didn't see the ssh-config-file
jobset input to be picked up. I selected Git checkout
as input type. Maybe that doesn't trigger the right fetchGit
?
How do you configure your checkout exactly? My Hydra version is Hydra 2019-02-01 (using nix-2.2.2)
.
Hey, I still struggle with setting up hydra for private my project using nixops. I did the following steps:
hydra.nix:
and infrastructure:
I did the following additional steps:
I added the public key as a deployment key for this specific private repository on github.com. After this I moved to the hydra web UI, added a New Project with:
I added a jobset:
with a Add a new input as:
When triggering evaluation i receive the following evaluation error:
Maybe @cleverca22 or someone else can have a look at this ?
Thank you really much.