2021-04-29 13:08:13 +00:00
|
|
|
NAMESPACE=alemairebe
|
2021-06-16 06:11:52 +00:00
|
|
|
VERSION=1.36.0
|
2021-04-29 13:08:13 +00:00
|
|
|
IMAGE=synapse
|
|
|
|
|
|
|
|
push: get decompress build
|
|
|
|
|
2021-04-30 11:31:26 +00:00
|
|
|
dev: get decompress build_dev
|
|
|
|
|
2021-04-29 13:08:13 +00:00
|
|
|
get:
|
2021-04-29 13:37:57 +00:00
|
|
|
wget https://github.com/matrix-org/synapse/archive/refs/tags/v$(VERSION).tar.gz
|
2021-04-29 13:08:13 +00:00
|
|
|
|
|
|
|
decompress:
|
2021-04-29 13:37:57 +00:00
|
|
|
tar -xf v$(VERSION).tar.gz
|
2021-04-29 13:08:13 +00:00
|
|
|
|
|
|
|
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} \
|
2021-04-29 13:56:47 +00:00
|
|
|
--cache-to=type=registry,ref=${NAMESPACE}/buildx:${IMAGE} \
|
2021-04-29 14:20:49 +00:00
|
|
|
--tag ${CI_REGISTRY_IMAGE}/${IMAGE}:$(VERSION) \
|
2021-04-30 11:31:26 +00:00
|
|
|
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
|
|
|
-f Dockerfile ${IMAGE}-${VERSION}
|
|
|
|
|
|
|
|
build_dev:
|
|
|
|
docker buildx build --platform linux/amd64,linux/arm64,linux/arm \
|
|
|
|
--output type=tar,dest=synapse.tar \
|
|
|
|
--tag ${NAMESPACE}/${IMAGE}:$(VERSION) \
|
2021-04-29 16:35:16 +00:00
|
|
|
-f Dockerfile ${IMAGE}-${VERSION}
|