Compare commits

...

10 Commits

3 changed files with 26 additions and 18 deletions

View File

@ -0,0 +1,12 @@
name: Build Multiarch Container Image
on: [push]
jobs:
call-reusable-workflow:
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
with:
repository: ${{ gitea.repository }}
ref_name: ${{ gitea.ref_name }}
sha: ${{ gitea.sha }}
registry_url: ${{ secrets.REGISTRY_URL }}
registry_user: ${{ secrets.REGISTRY_USER }}
registry_pw: ${{ secrets.REGISTRY_PW }}

View File

@ -1,11 +0,0 @@
pipeline:
publish-docker-image:
image: plugins/kaniko
settings:
repo: docker.io/thallian/matrix-synapse
tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG=pre}
dockerfile: Dockerfile
username:
from_secret: DOCKER_USER
password:
from_secret: DOCKER_PW

View File

@ -1,21 +1,28 @@
FROM docker.io/alpine:3.17 AS builder
ENV VERSION=v1.84.1
FROM docker.io/alpine:3.19 AS builder
RUN apk add --no-cache \
alpine-sdk \
python3-dev \
py3-pip \
py3-wheel \
py3-wheel \
libffi-dev \
openssl-dev \
zlib-dev \
jpeg-dev \
rust
rust \
poetry \
git
RUN pip3 install --target="/install" matrix-synapse==$VERSION
ENV VERSION=v1.103.0
RUN git clone https://github.com/element-hq/synapse.git
WORKDIR /synapse
RUN git checkout $VERSION
FROM docker.io/thallian/confd-env:3.17-3.1.3.0
RUN poetry export -o /synapse/requirements.txt
RUN pip3 install --target="/install" -r /synapse/requirements.txt
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
RUN addgroup -g 2222 matrix-synapse
RUN adduser -h /var/lib/matrix-synapse -u 2222 -D -G matrix-synapse matrix-synapse