buildx/synapse/Makefile

19 lines
486 B
Makefile
Raw Normal View History

NAMESPACE=alemairebe
VERSION=v1.32.2
IMAGE=synapse
push: get decompress build
get:
wget https://github.com/matrix-org/synapse/archive/refs/tags/$(VERSION).zip
decompress:
unzip $(VERSION).zip
build:
docker buildx build --platform linux/amd64,linux/arm64,linux/arm --push \
--cache-from=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) ${IMAGE}-$(VERSION)