make: Avoid repeting image name
This commit is contained in:
parent
873f63533b
commit
0348a4ec86
1 changed files with 11 additions and 3 deletions
14
Makefile
14
Makefile
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
DOCKER_IMAGE=glenux/openstack
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -8,10 +10,16 @@ build:
|
||||||
docker: docker-build docker-test docker-push
|
docker: docker-build docker-test docker-push
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
docker build --file docker/Dockerfile -t glenux/openstack-arkisto .
|
docker build --file docker/Dockerfile -t $(DOCKER_IMAGE) .
|
||||||
|
|
||||||
docker-push:
|
docker-push:
|
||||||
docker push glenux/openstack-arkisto
|
docker push $(DOCKER_IMAGE)
|
||||||
|
|
||||||
docker-test:
|
docker-test:
|
||||||
docker run glenux/openstack-arkisto arkisto --version
|
docker run $(DOCKER_IMAGE) arkisto --version
|
||||||
|
|
||||||
|
docker-save:
|
||||||
|
docker save $(DOCKER_IMAGE)
|
||||||
|
|
||||||
|
docker-load:
|
||||||
|
docker load $(DOCKER_IMAGE)
|
||||||
|
|
Loading…
Reference in a new issue