aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorhimaaaatti <sux2mfgj@gmail.com>2017-05-31 10:16:51 +0900
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-31 09:16:51 +0800
commit0f5b399e351786254f48dc1e5ed3419c3153703f (patch)
treeca75de803a6a2f46abeb765423202bdc1c71a22f /Makefile
parent24859fe5b64925f93f5b2decee28d3bba23a5b44 (diff)
downloadgitea-0f5b399e351786254f48dc1e5ed3419c3153703f.tar.gz
gitea-0f5b399e351786254f48dc1e5ed3419c3153703f.zip
Add variable for docker tag (#1825)
Signed-off-by: Shunsuke Mie <sux2mfgj@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e4927aa254..84d201e234 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ endif
BINDATA := modules/{options,public,templates}/bindata.go
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
JAVASCRIPTS :=
+DOCKER_TAG := gitea/gitea:latest
GOFLAGS := -i -v
EXTRA_GOFLAGS ?=
@@ -126,7 +127,7 @@ $(EXECUTABLE): $(SOURCES)
.PHONY: docker
docker:
docker run -ti --rm -v $(CURDIR):/srv/app/src/code.gitea.io/gitea -w /srv/app/src/code.gitea.io/gitea -e TAGS="bindata $(TAGS)" webhippie/golang:edge make clean generate build
- docker build -t gitea/gitea:latest .
+ docker build -t $(DOCKER_TAG) .
.PHONY: release
release: release-dirs release-windows release-linux release-darwin release-copy release-check