mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-08 17:29:59 +00:00
Rather than re-build the whole init, let's just include the wireguard tools in a tools repo. This also moves *most* of the stuff to new linuxkit infrastructure, instead of the legacy mobylinux. And checks an item off the TODO list. Signed-off-by: Tycho Andersen <tycho@docker.com>
16 lines
357 B
Makefile
16 lines
357 B
Makefile
.PHONY: tag push
|
|
default: push
|
|
|
|
IMAGE=wireguard-utils
|
|
DEPS=Dockerfile
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker pull linuxkit/$(IMAGE):$(HASH) || \
|
|
docker build --no-cache -t linuxkit/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
docker pull linuxkit/$(IMAGE):$(HASH) || \
|
|
docker push linuxkit/$(IMAGE):$(HASH)
|