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
a1b9f96d
Commit
a1b9f96d
authored
Nov 27, 2016
by
Miek Gieben
Committed by
GitHub
Nov 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ARM for Raspberry PI (#443)
Also release ARM binary when releasing. Comes in handy for raspberry Pi.
parent
96222927
Changes
1
Show 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 @
a1b9f96d
...
...
@@ -25,12 +25,12 @@
# * 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
'"'
)
ARCH
=
$(
shell
uname
-m
)
GITHUB
=
miekg
ARCH
:
=
$(
shell
uname
-m
)
GITHUB
:
=
miekg
all
:
commit push build release
all
:
commit push build
tar
release
.PHONY
:
push
push
:
...
...
@@ -44,16 +44,22 @@ commit:
.PHONY
:
build
build
:
@
echo
Releas
ing:
$(VERSION)
@
echo
Build
ing:
$(VERSION)
mkdir
-p
build/Darwin
&&
CGO_ENABLED
=
0
GOOS
=
darwin go build
-ldflags
=
"-s -w"
-o
build/Darwin/
$(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
release
:
.PHONY
:
tar
tar
:
rm
-rf
release
&&
mkdir
release
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)
.PHONY
:
release
release
:
@
echo
Releasing:
$(VERSION)
gh-release create
$(GITHUB)
/
$(NAME)
$(VERSION)
.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