buildx/mc/Makefile

14 lines
455 B
Makefile
Raw Normal View History

2020-07-29 14:01:00 +00:00
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