From c23f7986b461af2860d0ebee3d058ae4ffe094c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Tue, 3 Oct 2017 15:40:56 +0200 Subject: [PATCH] Trying to fix push to github --- git.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git.mk b/git.mk index dae0e82..836eb14 100644 --- a/git.mk +++ b/git.mk @@ -13,12 +13,12 @@ git-pull: push-github: ## Push the code to github. You need to set up GITHUB_DEPLOY_KEY ifeq ($(GITHUB_DEPLOY_KEY),) else - $(eval KEY_FILE := $(shell mktemp)) + $(eval KEY_FILE := "$(shell mktemp)") @echo "$(GITHUB_DEPLOY_KEY)" > $(KEY_FILE) @git remote rm github-deploy || true git remote add github-deploy $(GITHUB_REPO) - @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) + -@GIT_SSH_COMMAND="ssh -i $(KEY_FILE)" git fetch github-deploy $(CI_COMMIT_REF_NAME) + @GIT_SSH_COMMAND="ssh -i $(KEY_FILE)" git push github-deploy HEAD:$(CI_COMMIT_REF_NAME) rm $(KEY_FILE) endif