mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-16 01:52:06 +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
|
||||
include ../package.mk
|
||||
|
||||
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_CONTENT_TRUST=1 docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
||||
DOCKER_CONTENT_TRUST=1 docker push $(ORG)/$(IMAGE):$(HASH)
|
||||
NETWORK=1
|
||||
|
Reference in New Issue
Block a user