mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-17 13:58:19 +00:00
review builds
This commit is contained in:
@ -1,15 +1,18 @@
|
||||
include unifi/.version
|
||||
NAMESPACE=alemairebe
|
||||
include version
|
||||
|
||||
unifi-nopush:
|
||||
IMAGE=unifi
|
||||
|
||||
nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg VERSION=$(VERSION) \
|
||||
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
|
||||
--tag alemairebe/unifi:$(VERSION) unifi
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
|
||||
|
||||
unifi:
|
||||
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=alemairebe/unifi:buildx \
|
||||
--cache-to=type=registry,ref=alemairebe/unifi:buildx \
|
||||
--tag alemairebe/unifi:$(VERSION) unifi
|
||||
--cache-from=type=registry,ref=${namespace}/buildx:${IMAGE} \
|
||||
--cache-to=type=registry,ref=${namespace}/buildx:${IMAGE} \
|
||||
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) .
|
||||
|
Reference in New Issue
Block a user