mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-29 05:41:09 +00:00
Rename various mention of moby while at it Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
28 lines
702 B
Makefile
28 lines
702 B
Makefile
.PHONY: tag push
|
|
|
|
IMAGE=mkimage-vmdk
|
|
|
|
default: push
|
|
|
|
hash: Dockerfile make-vmdk
|
|
tar cf - $^ | docker build --no-cache -t $(IMAGE):build -
|
|
docker run --entrypoint sh --rm $(IMAGE):build -c "(cat $^; apt list --installed 2>/dev/null) | sha1sum" | sed 's/ .*//' > hash
|
|
|
|
push: hash
|
|
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
|
|
(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
|
|
docker push linuxkit/$(IMAGE):$(shell cat hash))
|
|
docker rmi $(IMAGE):build
|
|
rm -f hash
|
|
|
|
tag: hash
|
|
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
|
|
docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash)
|
|
docker rmi $(IMAGE):build
|
|
rm -f hash
|
|
|
|
clean:
|
|
rm -f hash
|
|
|
|
.DELETE_ON_ERROR:
|