buildx/unifi/Makefile
2020-09-05 10:56:53 +02:00

19 lines
584 B
Makefile

NAMESPACE=alemairebe
include version
IMAGE=unifi
nopush:
docker buildx build --platform linux/amd64 --load \
--build-arg VERSION=$(VERSION) \
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
push:
docker buildx build --platform linux/amd64,linux/arm64 --push \
--build-arg VERSION=$(VERSION) \
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
--cache-from=type=registry,ref=${namespace}/buildx:${IMAGE} \
--cache-to=type=registry,ref=${namespace}/buildx:${IMAGE} \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .