buildx/mc/Makefile
2020-07-29 16:01:00 +02:00

14 lines
455 B
Makefile

include mc/mc.version
mc-nopush:
docker buildx build --platform linux/amd64 --load \
--build-arg MC_VERSION=$(MC_VERSION) \
--tag alemairebe/mc:$(MC_VERSION) mc
mc:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
--build-arg MC_VERSION=$(MC_VERSION) \
--cache-from=type=registry,ref=alemairebe/mc \
--cache-to=type=registry,ref=alemairebe/mc \
--tag alemairebe/mc:$(MC_VERSION) mc