mirror of https://github.com/gsi-upm/senpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
693 B
Makefile
29 lines
693 B
Makefile
7 years ago
|
commit:
|
||
7 years ago
|
git commit -a
|
||
|
|
||
7 years ago
|
tag:
|
||
7 years ago
|
git tag ${VERSION}
|
||
|
|
||
7 years ago
|
git-push::
|
||
7 years ago
|
git push --tags -u origin HEAD
|
||
7 years ago
|
|
||
7 years ago
|
git-pull:
|
||
7 years ago
|
git pull --all
|
||
|
|
||
7 years ago
|
push-github: ## Push the code to github. You need to set up GITHUB_DEPLOY_KEY
|
||
|
ifeq ($(GITHUB_DEPLOY_KEY),)
|
||
|
else
|
||
7 years ago
|
$(eval KEY_FILE := "$(shell mktemp)")
|
||
6 years ago
|
@printf '%b' '$(GITHUB_DEPLOY_KEY)' > $(KEY_FILE)
|
||
7 years ago
|
@git remote rm github-deploy || true
|
||
|
git remote add github-deploy $(GITHUB_REPO)
|
||
7 years ago
|
-@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)
|
||
7 years ago
|
rm $(KEY_FILE)
|
||
7 years ago
|
endif
|
||
7 years ago
|
|
||
7 years ago
|
push:: git-push
|
||
|
pull:: git-pull
|
||
|
|
||
|
.PHONY:: commit tag push git-push git-pull push-github
|