mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
Releasing: automate more
Only manual operation is editing the source - even that could be automated but meh.
This commit is contained in:
@@ -20,21 +20,28 @@
|
|||||||
# * Get an access token: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
|
# * Get an access token: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
|
||||||
# * export GITHUB_ACCESS_TOKEN=<token>
|
# * export GITHUB_ACCESS_TOKEN=<token>
|
||||||
# * Up the version in coremain/version.go
|
# * Up the version in coremain/version.go
|
||||||
# * Commit -am'releasing <version>
|
|
||||||
# * Run: make -f Makefile.release
|
# * 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
|
NAME=coredns
|
||||||
VERSION:=$(shell grep 'coreVersion' coremain/version.go | awk '{ print $$3 }' | tr -d '"')
|
VERSION:=$(shell grep 'coreVersion' coremain/version.go | awk '{ print $$3 }' | tr -d '"')
|
||||||
ARCH=$(shell uname -m)
|
ARCH=$(shell uname -m)
|
||||||
GITHUB=miekg
|
GITHUB=miekg
|
||||||
|
|
||||||
all: push build release
|
all: commit push build release
|
||||||
|
|
||||||
.PHONY: push
|
.PHONY: push
|
||||||
push:
|
push:
|
||||||
@echo Pushing release to master
|
@echo Pushing release to master
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
.PHONY: commit
|
||||||
|
commit:
|
||||||
|
@echo Committing
|
||||||
|
git commit -am"Release $(VERSION)"
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
@echo Releasing: $(VERSION)
|
@echo Releasing: $(VERSION)
|
||||||
|
|||||||
Reference in New Issue
Block a user