buildx/synapse/Makefile
2021-04-29 14:20:49 +00:00

21 lines
597 B
Makefile

NAMESPACE=alemairebe
VERSION=1.32.2
IMAGE=synapse
.ONESHELL: # Applies to every targets in the file!
push: get decompress build
get:
wget https://github.com/matrix-org/synapse/archive/refs/tags/v$(VERSION).tar.gz
decompress:
tar -xf v$(VERSION).tar.gz
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) \
-f ${IMAGE}-${VERSION}/docker/Dockerfile ${IMAGE}-${VERSION}