mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 02:04:31 +00:00
Also make the HUB org/registry build time configurable for these packages. Others will be reworked in sub sequent commits. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
15 lines
290 B
Makefile
15 lines
290 B
Makefile
.PHONY: tag push
|
|
|
|
ORG?=linuxkit
|
|
IMAGE=containerd
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
default: push
|
|
|
|
tag: Dockerfile
|
|
docker build -t $(ORG)/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
docker pull $(ORG)/$(IMAGE):$(HASH) || docker push $(ORG)/$(IMAGE):$(HASH)
|