From c19d03b41dbe24b378389d0afb742ec1605283c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Mon, 12 Jun 2017 20:47:46 +0200 Subject: [PATCH] Added SSH access to github fetch --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b6c92e8..0b2680e 100644 --- a/Makefile +++ b/Makefile @@ -133,7 +133,7 @@ push-github: @echo "$$GITHUB_DEPLOY_KEY" > $(KEY_FILE) @git remote rm github-deploy || true git remote add github-deploy $(GITHUB_REPO) - git fetch github-deploy $(CI_COMMIT_REF_NAME) || true + @GIT_SSH_COMMAND="ssh -i $(KEY_FILE)" git fetch github-deploy $(CI_COMMIT_REF_NAME) || true @GIT_SSH_COMMAND="ssh -i $(KEY_FILE)" git push github-deploy $(CI_COMMIT_REF_NAME) rm $(KEY_FILE)