buildx/minio/Makefile

20 lines
611 B
Makefile
Raw Normal View History

2020-09-12 08:16:24 +00:00
NAMESPACE=alemairebe
include version
IMAGE=minio
2020-09-12 08:16:24 +00:00
nopush:
docker buildx build --platform linux/amd64 --load \
--build-arg VERSION=$(VERSION) \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
2020-09-12 08:16:24 +00:00
push:
2020-10-29 07:23:07 +00:00
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
2020-09-12 08:16:24 +00:00
--build-arg VERSION=$(VERSION) \
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
2020-09-12 08:16:24 +00:00
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) .
2020-09-12 08:16:24 +00:00