initial commit
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Has been cancelled
Some checks failed
Build Multiarch Container Image / call-reusable-workflow (push) Has been cancelled
This commit is contained in:
commit
aefc35a9d2
12
.gitea/workflows/container.yaml
Normal file
12
.gitea/workflows/container.yaml
Normal 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
3
.gitignore
vendored
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
*~
|
||||||
|
.DS_Store
|
||||||
|
*.swp
|
21
Containerfile
Normal file
21
Containerfile
Normal 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
15
README.md
Normal 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
|
Loading…
Reference in New Issue
Block a user