buildx/unifi/Makefile

16 lines
552 B
Makefile
Raw Normal View History

2020-08-20 08:47:08 +00:00
include unifi/.version
unifi-nopush:
docker buildx build --platform linux/amd64 --load \
--build-arg VERSION=$(VERSION) \
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
--tag alemairebe/unifi:$(VERSION) unifi
unifi:
docker buildx build --platform linux/amd64,linux/arm64 --push \
--build-arg VERSION=$(VERSION) \
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
--cache-from=type=registry,ref=alemairebe/unifi:buildx \
--cache-to=type=registry,ref=alemairebe/unifi:buildx \
--tag alemairebe/unifi:$(VERSION) unifi