1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

Add variable for docker tag (#1825)

Signed-off-by: Shunsuke Mie <sux2mfgj@gmail.com>
This commit is contained in:
himaaaatti 2017-05-31 10:16:51 +09:00 committed by Lunny Xiao
parent 24859fe5b6
commit 0f5b399e35

View File

@ -10,6 +10,7 @@ endif
BINDATA := modules/{options,public,templates}/bindata.go BINDATA := modules/{options,public,templates}/bindata.go
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less) STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
JAVASCRIPTS := JAVASCRIPTS :=
DOCKER_TAG := gitea/gitea:latest
GOFLAGS := -i -v GOFLAGS := -i -v
EXTRA_GOFLAGS ?= EXTRA_GOFLAGS ?=
@ -126,7 +127,7 @@ $(EXECUTABLE): $(SOURCES)
.PHONY: docker .PHONY: docker
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 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 .PHONY: release
release: release-dirs release-windows release-linux release-darwin release-copy release-check release: release-dirs release-windows release-linux release-darwin release-copy release-check