mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-14 06:09:48 +00:00
Merge pull request #2080 from dave-tucker/pkg-mk
Simplify Makefiles for Packages
This commit is contained in:
@@ -1,15 +1,4 @@
|
||||
.PHONY: tag push
|
||||
default: push
|
||||
include ../package.mk
|
||||
|
||||
ORG?=linuxkit
|
||||
IMAGE=init
|
||||
DEPS=Dockerfile init $(wildcard etc/*) $(wildcard etc/init.d/*) usermode-helper.c
|
||||
|
||||
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
||||
|
||||
tag: $(DEPS)
|
||||
docker build --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
|
||||
|
||||
push: tag
|
||||
DOCKER_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
||||
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)
|
||||
DEPS=init usermode-helper.c $(wildcard etc/*) $(wildcard etc/init.d/*)
|
||||
|
Reference in New Issue
Block a user