mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
tools/qemu: Use common pkg/package.mk to drive Makefile
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
parent
7534d4c926
commit
d5535ea3e4
@ -1,15 +1,3 @@
|
|||||||
.PHONY: tag push
|
include ../../pkg/package.mk
|
||||||
default: push
|
|
||||||
|
|
||||||
ORG?=linuxkit
|
|
||||||
IMAGE=qemu
|
IMAGE=qemu
|
||||||
DEPS=Dockerfile Makefile
|
|
||||||
|
|
||||||
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
||||||
|
|
||||||
tag: $(DEPS)
|
|
||||||
DOCKER_CONTENT_TRUST=1 docker build --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
|
|
||||||
|
|
||||||
push: tag
|
|
||||||
docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
|
||||||
docker push $(ORG)/$(IMAGE):$(HASH)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user