mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 00:02:28 +00:00
23 lines
593 B
Makefile
23 lines
593 B
Makefile
commit:
|
|
git commit -a
|
|
|
|
tag:
|
|
git tag ${VERSION}
|
|
|
|
push::
|
|
git push --tags origin master
|
|
|
|
pull::
|
|
git pull --all
|
|
|
|
push-github: ## Push the code to github. You need to set up HUB_USER and HUB_PASSWORD
|
|
$(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)
|
|
rm $(KEY_FILE)
|
|
|
|
.PHONY:: commit tag push push-github
|