Skip to content

Commit 0f5b399

Browse files
sux2mfgjlunny
authored andcommitted
Add variable for docker tag (#1825)
Signed-off-by: Shunsuke Mie <[email protected]>
1 parent 24859fe commit 0f5b399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ endif
1010
BINDATA := modules/{options,public,templates}/bindata.go
1111
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
1212
JAVASCRIPTS :=
13+
DOCKER_TAG := gitea/gitea:latest
1314

1415
GOFLAGS := -i -v
1516
EXTRA_GOFLAGS ?=
@@ -126,7 +127,7 @@ $(EXECUTABLE): $(SOURCES)
126127
.PHONY: docker
127128
docker:
128129
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
129-
docker build -t gitea/gitea:latest .
130+
docker build -t $(DOCKER_TAG) .
130131

131132
.PHONY: release
132133
release: release-dirs release-windows release-linux release-darwin release-copy release-check

0 commit comments

Comments
 (0)