mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-17 14:36:32 +00:00
This commit removes Notary and Content Trust. Notary v1 is due to be replaced with Notary v2 soon. There is no clean migration path from one to the other. For now, this removes all signing from LinuxKit. We will look to add this back once a new Notary alternative becomes available. Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
28 lines
645 B
Makefile
28 lines
645 B
Makefile
.PHONY: build push
|
|
|
|
IMAGE=guestfs
|
|
|
|
default: push
|
|
|
|
iid: Dockerfile
|
|
tar cf - $^ | docker build --no-cache --iidfile iid -
|
|
|
|
hash: Makefile iid
|
|
docker run --rm $(shell cat iid) sh -c 'apt list --installed 2>/dev/null | sha1sum' | sed 's/ .*//' > hash
|
|
|
|
push: hash iid
|
|
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
|
|
(docker tag $(shell cat iid) linuxkit/$(IMAGE):$(shell cat hash) && \
|
|
docker push linuxkit/$(IMAGE):$(shell cat hash))
|
|
rm -f iid
|
|
|
|
build: hash iid
|
|
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
|
|
docker tag $(shell cat iid) linuxkit/$(IMAGE):$(shell cat hash)
|
|
rm -f iid
|
|
|
|
clean:
|
|
rm -f hash iid
|
|
|
|
.DELETE_ON_ERROR:
|