buildx/synapse/Makefile

19 lines
498 B
Makefile
Raw Normal View History

NAMESPACE=alemairebe
2021-04-29 13:37:57 +00:00
VERSION=1.32.2
IMAGE=synapse
push: get decompress build
get:
2021-04-29 13:37:57 +00:00
wget https://github.com/matrix-org/synapse/archive/refs/tags/v$(VERSION).tar.gz
decompress:
2021-04-29 13:37:57 +00:00
tar -xf v$(VERSION).tar.gz
build:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
2021-04-29 13:16:05 +00:00
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
2021-04-29 13:37:57 +00:00
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) ${IMAGE}-$(VERSION)/docker