Add synapse container build with s3 storage backend
Some checks failed
/ build-container (push) Failing after 33s
Some checks failed
/ build-container (push) Failing after 33s
This commit is contained in:
parent
35b9d46c34
commit
6aa98f85c8
2 changed files with 26 additions and 0 deletions
22
.forgejo/workflows/build-synapse.yaml
Normal file
22
.forgejo/workflows/build-synapse.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- containers/synapse/Containerfile
|
||||||
|
schedule:
|
||||||
|
- cron: '0 12 */7 * *'
|
||||||
|
jobs:
|
||||||
|
build-container:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: library/docker:dind
|
||||||
|
steps:
|
||||||
|
- run: apk add --no-cache nodejs git
|
||||||
|
- name: login to container registry
|
||||||
|
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login --username ${{ secrets.DEPLOY_USER }} --password-stdin git.janky.solutions
|
||||||
|
- name: build container image
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
file: Containerfile
|
||||||
|
tags: git.janky.solutions/jankysolutions/infra/synapse:latest
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
4
containers/synapse/Containerfile
Normal file
4
containers/synapse/Containerfile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
FROM matrixdotorg/synapse:latest
|
||||||
|
RUN pip install boto3
|
||||||
|
RUN curl -o /usr/local/lib/python3.11/site-packages/s3_storage_provider.py https://github.com/matrix-org/synapse-s3-storage-provider/raw/v1.4.0/s3_storage_provider.py
|
||||||
|
RUN curl -o /usr/local/bin/s3_media_upload https://github.com/matrix-org/synapse-s3-storage-provider/raw/main/scripts/s3_media_upload && chmod +x /usr/local/bin/s3_media_upload
|
Loading…
Reference in a new issue