Makefile variable based
This commit is contained in:
parent
84dd531e48
commit
56f6ac2bc6
7
Makefile
7
Makefile
|
@ -1,11 +1,14 @@
|
||||||
default: buildall
|
default: buildall
|
||||||
|
|
||||||
VOLUME ?= cloner-test
|
VOLUME ?= cloner-test
|
||||||
|
TAGOWNER = valicek1
|
||||||
|
TAGMAIN = repo-cloner
|
||||||
|
TAGBASE= $(TAGOWNER)/$(TAGMAIN)
|
||||||
|
|
||||||
|
|
||||||
mirror:
|
mirror:
|
||||||
docker build -t valicek1/repo-cloner-mirror .
|
docker build -t $(TAGBASE)-mirror .
|
||||||
|
|
||||||
run-mirror: mirror
|
run-mirror: mirror
|
||||||
docker run -v $(VOLUME):/data -it --rm valicek1/repo-cloner-mirror
|
docker run -v $(VOLUME):/data -it --rm $(TAGBASE)-mirror
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user