mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 11:27:45 +00:00
This is what the other images should look like in future. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
14 lines
302 B
Makefile
14 lines
302 B
Makefile
.PHONY: tag push
|
|
|
|
IMAGE=ca-certificates
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
default: push
|
|
|
|
tag: Dockerfile
|
|
docker build --network=none -t linuxkit/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
docker pull linuxkit/$(IMAGE):$(HASH) || docker push linuxkit/$(IMAGE):$(HASH)
|