Makefile variable based
This commit is contained in:
parent
84dd531e48
commit
56f6ac2bc6
7
Makefile
7
Makefile
|
@ -1,11 +1,14 @@
|
|||
default: buildall
|
||||
|
||||
VOLUME ?= cloner-test
|
||||
TAGOWNER = valicek1
|
||||
TAGMAIN = repo-cloner
|
||||
TAGBASE= $(TAGOWNER)/$(TAGMAIN)
|
||||
|
||||
|
||||
mirror:
|
||||
docker build -t valicek1/repo-cloner-mirror .
|
||||
docker build -t $(TAGBASE)-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