Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sefarad
dashboard-gsicrawler
Commits
4f88009b
Commit
4f88009b
authored
Oct 03, 2017
by
J. Fernando Sánchez
Browse files
Merge branch 'senpy' into 'master'
Senpy See merge request docs/templates/makefiles!6
parents
b20982ca
1f0703d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
git.mk
View file @
4f88009b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment