mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
build: cp Dockerfile in docker-build target (#5925)
Signed-off-by: Lionello Lunesu <lio+git@lunesu.com>
This commit is contained in:
@@ -73,7 +73,6 @@ endif
|
|||||||
mkdir build/docker/$${arch}; \
|
mkdir build/docker/$${arch}; \
|
||||||
curl -L $(GITHUB)/v$(VERSION)/coredns_$(VERSION)_linux_$${arch}.tgz > build/docker/$${arch}/coredns.tgz && \
|
curl -L $(GITHUB)/v$(VERSION)/coredns_$(VERSION)_linux_$${arch}.tgz > build/docker/$${arch}/coredns.tgz && \
|
||||||
( cd build/docker/$${arch}; tar xf coredns.tgz && rm coredns.tgz ); \
|
( cd build/docker/$${arch}; tar xf coredns.tgz && rm coredns.tgz ); \
|
||||||
cp Dockerfile build/docker/$${arch} ; \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: docker-build
|
.PHONY: docker-build
|
||||||
@@ -83,12 +82,16 @@ ifeq ($(DOCKER),)
|
|||||||
else
|
else
|
||||||
docker version
|
docker version
|
||||||
for arch in $(LINUX_ARCH); do \
|
for arch in $(LINUX_ARCH); do \
|
||||||
|
cp Dockerfile build/docker/$${arch} ; \
|
||||||
DOCKER_BUILDKIT=1 docker build --platform=$${arch} -t $(DOCKER_IMAGE_NAME):$${arch}-$(VERSION) build/docker/$${arch} ;\
|
DOCKER_BUILDKIT=1 docker build --platform=$${arch} -t $(DOCKER_IMAGE_NAME):$${arch}-$(VERSION) build/docker/$${arch} ;\
|
||||||
done
|
done
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: docker-push
|
.PHONY: docker-push
|
||||||
docker-push:
|
docker-push:
|
||||||
|
ifeq ($(VERSION),)
|
||||||
|
$(error "Please specify a version use. Use VERSION=<version>")
|
||||||
|
endif
|
||||||
ifeq ($(DOCKER),)
|
ifeq ($(DOCKER),)
|
||||||
$(error "Please specify Docker registry to use. Use DOCKER=coredns for releases")
|
$(error "Please specify Docker registry to use. Use DOCKER=coredns for releases")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user