Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
amend Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpau committed Apr 29, 2020
1 parent bda46c1 commit 81677a7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ gobgp:
gobgp-down:
@sudo systemctl stop gobgpd

tag:
@git tag -s "v$(APP_VERSION)" -m "v$(APP_VERSION)"
release:
@echo "Making release"
@if [ $(GIT_BRANCH) != "master" ]; then echo "cannot release to non-master branch $(GIT_BRANCH)" && false; fi
@git diff-index --quiet HEAD -- || ( echo "git directory is dirty, commit changes first" && false )
@versioned -patch
@echo "Patched version"
@git add VERSION
@git commit -m "released v`cat VERSION | head -1`"
@git tag -a v`cat VERSION | head -1` -m "v`cat VERSION | head -1`"
@git push
@git push --tags

0 comments on commit 81677a7

Please sign in to comment.