make: Avoid repeting image name

This commit is contained in:
Glenn Y. Rolland 2022-07-09 20:21:20 +02:00
parent 873f63533b
commit 0348a4ec86

View file

@ -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)