Compare commits

...

6 Commits

2 changed files with 33 additions and 0 deletions

View File

@ -202,6 +202,19 @@ shields:
changes:
- shields/*
synapse:
stage: build
tags:
- docker
script:
- cd synapse
- make push
only:
variables:
- $CI_COMMIT_REF_PROTECTED == "true"
changes:
- synapse/*
.docker_init: &docker_init |
if ! docker info &>/dev/null; then
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then

20
synapse/Makefile Normal file
View File

@ -0,0 +1,20 @@
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}