aboutsummaryrefslogtreecommitdiff
path: root/Makefile.release
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-11-11 17:56:54 +0000
committerGravatar Miek Gieben <miek@miek.nl> 2016-11-11 17:57:06 +0000
commitf402b8f726d5c3550ae2d4efc45d9b3d95e1bef0 (patch)
tree3b5246df248bdefa78b4c82c44e2bf0c3915e4f5 /Makefile.release
parent651f3938a158e3b299ba5d548b191aee6d36f62d (diff)
downloadcoredns-f402b8f726d5c3550ae2d4efc45d9b3d95e1bef0.tar.gz
coredns-f402b8f726d5c3550ae2d4efc45d9b3d95e1bef0.tar.zst
coredns-f402b8f726d5c3550ae2d4efc45d9b3d95e1bef0.zip
Releasing: automate more
Only manual operation is editing the source - even that could be automated but meh.
Diffstat (limited to 'Makefile.release')
-rw-r--r--Makefile.release11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.release b/Makefile.release
index 2e8ecd6cd..f58fae00c 100644
--- a/Makefile.release
+++ b/Makefile.release
@@ -20,21 +20,28 @@
# * Get an access token: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
# * export GITHUB_ACCESS_TOKEN=<token>
# * Up the version in coremain/version.go
-# * Commit -am'releasing <version>
# * Run: make -f Makefile.release
+# * will commit your change with 'Release $VERSION'
+# * push to github
+# * build the release and do all that fluff.
NAME=coredns
VERSION:=$(shell grep 'coreVersion' coremain/version.go | awk '{ print $$3 }' | tr -d '"')
ARCH=$(shell uname -m)
GITHUB=miekg
-all: push build release
+all: commit push build release
.PHONY: push
push:
@echo Pushing release to master
git push
+.PHONY: commit
+commit:
+ @echo Committing
+ git commit -am"Release $(VERSION)"
+
.PHONY: build
build:
@echo Releasing: $(VERSION)