2020-09-05 08:56:10 +00:00
|
|
|
NAMESPACE=alemairebe
|
|
|
|
include version
|
2020-08-20 08:47:08 +00:00
|
|
|
|
2020-09-05 08:56:10 +00:00
|
|
|
IMAGE=unifi
|
|
|
|
|
|
|
|
nopush:
|
2020-08-20 08:47:08 +00:00
|
|
|
docker buildx build --platform linux/amd64 --load \
|
|
|
|
--build-arg VERSION=$(VERSION) \
|
|
|
|
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
|
2020-12-11 15:27:46 +00:00
|
|
|
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
|
|
|
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|
2020-08-20 08:47:08 +00:00
|
|
|
|
2020-09-05 08:56:10 +00:00
|
|
|
push:
|
2020-08-20 08:47:08 +00:00
|
|
|
docker buildx build --platform linux/amd64,linux/arm64 --push \
|
|
|
|
--build-arg VERSION=$(VERSION) \
|
|
|
|
--build-arg UNIFI_VERSION=$(UNIFI_VERSION) \
|
2020-09-05 09:01:30 +00:00
|
|
|
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
|
|
|
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
2020-12-11 15:27:46 +00:00
|
|
|
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
|
|
|
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
|