mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
swarmd: Use common package.mk to simplify Makefile
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
parent
fc5d166eb5
commit
415bdd396c
@ -1,15 +1,4 @@
|
|||||||
.PHONY: tag push
|
|
||||||
all: push
|
|
||||||
|
|
||||||
ORG?=linuxkit
|
|
||||||
IMAGE=swarmd
|
IMAGE=swarmd
|
||||||
|
NETWORK=1
|
||||||
|
|
||||||
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
include ../../../pkg/package.mk
|
||||||
|
|
||||||
default: push
|
|
||||||
|
|
||||||
tag: Dockerfile
|
|
||||||
docker build --no-cache -t $(ORG)/$(IMAGE):$(HASH) .
|
|
||||||
|
|
||||||
push: tag
|
|
||||||
docker pull $(ORG)/$(IMAGE):$(HASH) || docker push $(ORG)/$(IMAGE):$(HASH)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user