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

16 lines
601 B
Makefile

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