Skip to content
Snippets Groups Projects
Commit 4449b72b authored by Markus Frosch's avatar Markus Frosch
Browse files

Add back the legacy image tag

parent 7eaaf643
No related branches found
No related tags found
No related merge requests found
Pipeline #3914 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment