Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
eb8158ff
Commit
eb8158ff
authored
Nov 27, 2016
by
Miek Gieben
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:miekg/coredns
parents
0876a38c
a1b9f96d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
Makefile.release
Makefile.release
+15
-9
No files found.
Makefile.release
View file @
eb8158ff
...
@@ -25,12 +25,12 @@
...
@@ -25,12 +25,12 @@
# * push to github
# * push to github
# * build the release and do all that fluff.
# * 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
:
commit push build release
all
:
commit push build
tar
release
.PHONY
:
push
.PHONY
:
push
push
:
push
:
...
@@ -44,16 +44,22 @@ commit:
...
@@ -44,16 +44,22 @@ commit:
.PHONY
:
build
.PHONY
:
build
build
:
build
:
@
echo
Releasing:
$(VERSION)
@
echo
Building:
$(VERSION)
mkdir
-p
build/Darwin
&&
CGO_ENABLED
=
0
GOOS
=
darwin go build
-ldflags
=
"-s -w"
-o
build/Darwin/
$(NAME)
mkdir
-p
build/Darwin
&&
CGO_ENABLED
=
0
GOOS
=
darwin go build
-ldflags
=
"-s -w"
-o
build/Darwin/
$(NAME)
mkdir
-p
build/Linux
&&
CGO_ENABLED
=
0
GOOS
=
linux go build
-ldflags
=
"-s -w"
-o
build/Linux/
$(NAME)
mkdir
-p
build/Linux/Arm
&&
CGO_ENABLED
=
0
GOOS
=
linux
GOARCH
=
arm go build
-ldflags
=
"-s -w"
-o
build/Linux/Arm/
$(NAME)
mkdir
-p
build/Linux
&&
CGO_ENABLED
=
0
GOOS
=
linux go build
-ldflags
=
"-s -w"
-o
build/Linux/
$(NAME)
.PHONY
:
release
.PHONY
:
tar
release
:
tar
:
rm
-rf
release
&&
mkdir
release
rm
-rf
release
&&
mkdir
release
tar
-zcf
release/
$(NAME)
_
$(VERSION)
_linux_
$(ARCH)
.tgz
-C
build/Linux
$(NAME)
tar
-zcf
release/
$(NAME)
_
$(VERSION)
_linux_
$(ARCH)
.tgz
-C
build/Linux
$(NAME)
tar
-zcf
release/
$(NAME)
_
$(VERSION)
_linux_armv6l.tgz
-C
build/Linux/Arm
$(NAME)
tar
-zcf
release/
$(NAME)
_
$(VERSION)
_darwin_
$(ARCH)
.tgz
-C
build/Darwin
$(NAME)
tar
-zcf
release/
$(NAME)
_
$(VERSION)
_darwin_
$(ARCH)
.tgz
-C
build/Darwin
$(NAME)
.PHONY
:
release
release
:
@
echo
Releasing:
$(VERSION)
gh-release create
$(GITHUB)
/
$(NAME)
$(VERSION)
gh-release create
$(GITHUB)
/
$(NAME)
$(VERSION)
.PHONY
:
clean
.PHONY
:
clean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment