Commit 4449b72b authored by Markus Frosch's avatar Markus Frosch 📣

Add back the legacy image tag

parent 7eaaf643
Pipeline #3914 passed with stage
in 1 minute and 3 seconds
......@@ -13,6 +13,8 @@ ifneq ($(CI_REGISTRY),)
IMAGE := $(CI_REGISTRY)/$(IMAGE)
endif
IMAGE_EXTRA_TAG := x86_64
all: pull build
pull:
......@@ -21,9 +23,15 @@ pull:
build:
docker build --cache-from "${IMAGE}" --tag "$(IMAGE)" .
ifdef IMAGE_EXTRA_TAG
docker tag "$(IMAGE)" "$(IMAGE):$(IMAGE_EXTRA_TAG)"
endif
push:
docker push "$(IMAGE)"
ifdef IMAGE_EXTRA_TAG
docker push "$(IMAGE):$(IMAGE_EXTRA_TAG)"
endif
clean:
if (docker inspect --type image "$(IMAGE)" >/dev/null 2>&1); then docker rmi "$(IMAGE)"; fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment