slopfixing so i can host it easy from ghcr

This commit is contained in:
legop3 2026-06-13 22:09:30 -04:00
parent 1ff12ecdff
commit 2301acccf9
6 changed files with 85 additions and 4 deletions

10
.dockerignore Normal file
View file

@ -0,0 +1,10 @@
.git
.github
target
**/target
.env
.env.*
!.env.example
docker-compose.yml
compose.yml
*.log

59
.github/workflows/publish-ghcr.yml vendored Normal file
View file

@ -0,0 +1,59 @@
name: Publish GHCR image
on:
push:
branches:
- master
tags:
- "v*"
workflow_dispatch:
permissions:
contents: read
packages: write
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
jobs:
docker:
name: Build and publish Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=ref,event=tag
type=sha,prefix=sha-
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "pjsua/pjproject"]
path = pjsua/pjproject
url = https://github.com/pjsip/pjproject.git

View file

@ -5,5 +5,5 @@ resolver = "2"
[workspace.package]
authors = ["coral <jonas@jonasbengtson.se>"]
license = "AGPL-3.0-only"
repository = "https://github.com/coral/sipcord-bridge"
repository = "https://github.com/legop3/sipcord-bridge"
homepage = "https://sipcord.net/"

View file

@ -74,7 +74,7 @@ Create a `docker-compose.yml`:
```yaml
services:
sipcord-bridge:
image: ghcr.io/coral/sipcord-bridge:latest
image: ghcr.io/legop3/sipcord-bridge:latest
container_name: sipcord-bridge
restart: always
network_mode: host
@ -95,6 +95,15 @@ docker logs -f sipcord-bridge
You should see it load the dialplan and start listening.
Images are published by GitHub Actions to `ghcr.io/legop3/sipcord-bridge`
on pushes to `master`, version tags like `v2.1.2`, and manual workflow runs.
If the package is private, make it public in the GitHub package settings or
log in to GHCR from your OMV host before pulling.
For a FreePBX trunk, point the trunk host at your Docker host and send the
extension digits you configured in `dialplan.toml`. The static router ignores
SIP usernames/passwords and routes only by the dialed extension.
### 4b. Build from source
Requires Rust nightly (for `portable_simd`) and system dependencies for pjproject (OpenSSL, Opus, libtiff, etc). See the `Dockerfile` for the full list.
@ -163,4 +172,4 @@ The bridge can receive faxes (both G.711 passthrough and T.38 UDPTL). Received f
Code is AGPLv3
Dusthillguy track is whatever dusthillguy wishes
Dusthillguy track is whatever dusthillguy wishes

View file

@ -4,7 +4,7 @@ version = "2.1.2"
edition = "2024"
authors = ["coral <jonas@jonasbengtson.se>"]
license = "AGPL-3.0-only"
repository = "https://github.com/coral/sipcord-bridge"
repository = "https://github.com/legop3/sipcord-bridge"
homepage = "https://sipcord.net/"
publish = false