From f146a9e43911c37d68954b0fe7d15a008a6e73e8 Mon Sep 17 00:00:00 2001 From: Dorchies David <david.dorchies@irstea.fr> Date: Mon, 27 Sep 2021 11:03:27 +0200 Subject: [PATCH] ci: debug github push - Adding github.com as known host (https://stackoverflow.com/a/29380672) Refs #11 --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40a8acd..07deaab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,6 +59,9 @@ github: - mkdir -p ~/.ssh - chmod 700 ~/.ssh + ## Add Github to known hosts (https://stackoverflow.com/a/29380672) + - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts + ## ## Optionally, if you will be using any Git commands, set the user name and ## and email. -- GitLab