mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-11 02:53:30 +00:00
16 lines
552 B
Makefile
16 lines
552 B
Makefile
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
|