Update synapse/Makefile

This commit is contained in:
Adrien le Maire 2021-04-29 13:16:05 +00:00
parent d752fcfe68
commit d38a19bfee

View File

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