mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
tool/go-compile: Use common pkg/package.mk to drive Makefile
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
parent
c9b5cbf89b
commit
7534d4c926
@ -1,15 +1,4 @@
|
||||
.PHONY: tag push
|
||||
default: push
|
||||
include ../../pkg/package.mk
|
||||
|
||||
ORG?=linuxkit
|
||||
IMAGE=go-compile
|
||||
DEPS=Dockerfile Makefile compile.sh
|
||||
|
||||
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=compile.sh
|
||||
|
Loading…
Reference in New Issue
Block a user