mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 02:00:13 +01:00
fix(utils): create ~/.ssh/known_hosts if it does not exist
This commit is contained in:
parent
262729e9bb
commit
426d89702a
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
before_script = [
|
||||
''
|
||||
eval "$(ssh-agent -s)" >/dev/null;
|
||||
mkdir -p ~/.ssh; touch ~/.ssh/known_hosts;
|
||||
ssh-keyscan -t rsa $CI_SERVER_HOST >> ~/.ssh/known_hosts;
|
||||
echo "$GIT_SSH_PRIV_KEY" | tr -d '\r' | ssh-add - >/dev/null;
|
||||
git config --global user.email "$GIT_EMAIL" >/dev/null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue