mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-01 03:01:49 +00:00
15 lines
316 B
Makefile
15 lines
316 B
Makefile
.PHONY: tag push
|
|
default: push
|
|
|
|
IMAGE=docker-ce
|
|
DEPS=Dockerfile
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker build --squash --no-cache -t linuxkit/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
docker pull linuxkit/$(IMAGE):$(HASH) || \
|
|
docker push linuxkit/$(IMAGE):$(HASH)
|