fix target dockerfile

This commit is contained in:
Adrien le Maire 2021-04-29 15:37:57 +02:00
parent 0a44914536
commit 465cee68bd

View File

@ -1,18 +1,18 @@
NAMESPACE=alemairebe NAMESPACE=alemairebe
VERSION=v1.32.2 VERSION=1.32.2
IMAGE=synapse IMAGE=synapse
push: get decompress build push: get decompress build
get: get:
wget https://github.com/matrix-org/synapse/archive/refs/tags/$(VERSION).tar.gz wget https://github.com/matrix-org/synapse/archive/refs/tags/v$(VERSION).tar.gz
decompress: decompress:
tar -xf $(VERSION).tar.gz tar -xf v$(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)/docker