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
a3f77886
Commit
a3f77886
authored
Mar 01, 2017
by
Miek Gieben
Committed by
GitHub
Mar 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put docker release in Makefile.release (#562)
Make the docker release part of the normal CoreDNS release
parent
9ea8cde3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
Makefile
Makefile
+0
-9
Makefile.release
Makefile.release
+21
-0
No files found.
Makefile
View file @
a3f77886
...
@@ -2,9 +2,6 @@ BUILD_VERBOSE := -v
...
@@ -2,9 +2,6 @@ BUILD_VERBOSE := -v
TEST_VERBOSE
:=
-v
TEST_VERBOSE
:=
-v
DOCKER_IMAGE_NAME
?=
$$
USER/coredns
DOCKER_VERSION
?=
$(
shell
grep
'coreVersion'
coremain/version.go |
awk
'{ print $$3
}
'
|
tr
-d
'"'
)
all
:
coredns
all
:
coredns
# Phony this to ensure we always build the binary.
# Phony this to ensure we always build the binary.
...
@@ -13,12 +10,6 @@ all: coredns
...
@@ -13,12 +10,6 @@ all: coredns
coredns
:
deps core/zmiddleware.go core/dnsserver/zdirectives.go
coredns
:
deps core/zmiddleware.go core/dnsserver/zdirectives.go
go build
$(BUILD_VERBOSE)
-ldflags
=
"-s -w"
go build
$(BUILD_VERBOSE)
-ldflags
=
"-s -w"
.PHONY
:
docker
docker
:
deps
CGO_ENABLED
=
0
GOOS
=
linux go build
-ldflags
=
"-s -w"
docker build
-t
$(DOCKER_IMAGE_NAME)
.
docker tag
$(DOCKER_IMAGE_NAME)
:latest
$(DOCKER_IMAGE_NAME)
:
$(DOCKER_VERSION)
.PHONY
:
deps
.PHONY
:
deps
deps
:
fmt
deps
:
fmt
go get
${BUILD_VERBOSE}
go get
${BUILD_VERBOSE}
...
...
Makefile.release
View file @
a3f77886
...
@@ -24,14 +24,24 @@
...
@@ -24,14 +24,24 @@
# * will commit your change with 'Release $VERSION'
# * will commit your change with 'Release $VERSION'
# * push to github
# * push to github
# * build the release and do all that fluff.
# * build the release and do all that fluff.
#
# Steps for docker
# * Login into docker: docker login (should have push creds for coredns registry)
# * Run: make -f Makefile.release docker
#
# Docker push should happen after you make the new release and uploaded it to Github.
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
:=
coredns
GITHUB
:=
coredns
DOCKER
:=
coredns
DOCKER_IMAGE_NAME
:=
$(DOCKER)
/
$(NAME)
all
:
commit push build tar release
all
:
commit push build tar release
docker
:
docker-build docker-release
.PHONY
:
push
.PHONY
:
push
push
:
push
:
@
echo
Pushing release to master
@
echo
Pushing release to master
...
@@ -62,6 +72,17 @@ release:
...
@@ -62,6 +72,17 @@ release:
@
echo
Releasing:
$(VERSION)
@
echo
Releasing:
$(VERSION)
gh-release create
$(GITHUB)
/
$(NAME)
$(VERSION)
gh-release create
$(GITHUB)
/
$(NAME)
$(VERSION)
.PHONY
:
docker-build
docker
:
CGO_ENABLED
=
0
GOOS
=
linux go build
-ldflags
=
"-s -w"
docker build
-t
$(DOCKER_IMAGE_NAME)
.
docker tag
$(DOCKER_IMAGE_NAME)
:latest
$(DOCKER_IMAGE_NAME)
:
$(VERSION)
.PHONY
:
docker-release
docker-release
:
@
echo
Pushing:
$(VERSION)
docker tag
$(DOCKER_IMAGE_NAME)
:latest
$(DOCKER_IMAGE_NAME)
:
$(VERSION)
.PHONY
:
clean
.PHONY
:
clean
clean
:
clean
:
rm
-rf
release
rm
-rf
release
...
...
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