From 0f5b399e351786254f48dc1e5ed3419c3153703f Mon Sep 17 00:00:00 2001 From: himaaaatti Date: Wed, 31 May 2017 10:16:51 +0900 Subject: [PATCH] Add variable for docker tag (#1825) Signed-off-by: Shunsuke Mie --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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