initial commit
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Has been cancelled

This commit is contained in:
Sebastian Hugentobler 2024-05-30 18:03:54 +02:00
commit aefc35a9d2
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
4 changed files with 51 additions and 0 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 }}

3
.gitignore vendored Executable file
View File

@ -0,0 +1,3 @@
*~
.DS_Store
*.swp

21
Containerfile Normal file
View File

@ -0,0 +1,21 @@
FROM docker.io/golang:1.22-alpine3.20 as builder
ENV CGO_ENABLED=0
RUN apk --no-cache add \
git
WORKDIR /build
ENV VERSION=v0.99.18
RUN git clone https://github.com/matrix-org/sliding-sync.git
WORKDIR /build/sliding-sync
RUN git checkout $VERSION
RUN go build ./cmd/syncv3
FROM scratch
COPY --from=builder /build/sliding-sync/syncv3 /syncv3
ENTRYPOINT [ "/syncv3" ]
EXPOSE 8008

15
README.md Normal file
View File

@ -0,0 +1,15 @@
[Sliding sync proxy](https://github.com/matrix-org/sliding-sync) for the
[matrix](http://matrix.org/) network.
# Environment Variables
Look in the
[project readme](https://github.com/matrix-org/sliding-sync?tab=readme-ov-file#setup)
for supported environment variables.
At least `SYNCV3_SERVER`, `SYNCV3_DB`, `SYNCV3_SECRET` and `SYNCV3_BINDADDR`
must be set.
# Ports
- 8080