Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# Builds the self-hosted HTTP server image and pushes it to the Edgegap
# container registry, for hosts that pull it (e.g. the support agent VM).
# Builds the self-hosted HTTP server image and pushes it to GitHub Container
# Registry, for hosts that pull it (e.g. the support agent VM). Uses the
# workflow's own GITHUB_TOKEN; no repository secrets needed.
#
# Repository settings needed:
# variables.EDGEGAP_REGISTRY_PROJECT registry project, e.g. my-org-abc123
# secrets.EDGEGAP_REGISTRY_USERNAME robot account username
# secrets.EDGEGAP_REGISTRY_TOKEN robot account token
#
# Tags pushed: sha-<commit> on every push to main, plus main; <version> on v* tags.
# Tags pushed: sha-<commit> and main on every push to main; <version> on v* tags.

name: Docker image

Expand All @@ -18,9 +14,10 @@ on:

permissions:
contents: read
packages: write

env:
IMAGE: registry.edgegap.com/${{ vars.EDGEGAP_REGISTRY_PROJECT }}/edgegap-mcp
IMAGE: ghcr.io/edgegap/edgegap-mcp

jobs:
push:
Expand All @@ -41,9 +38,9 @@ jobs:

- uses: docker/login-action@v3
with:
registry: registry.edgegap.com
username: ${{ secrets.EDGEGAP_REGISTRY_USERNAME }}
password: ${{ secrets.EDGEGAP_REGISTRY_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v6
with:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ docker run --rm -p 8080:8080 edgegap-mcp

Clients connect to `http://<host>:8080/mcp` with their own `Authorization` header, the same way they connect to the hosted endpoint. The image holds no credential, and `/health` answers without one. `PORT`, `HOST`, `EDGEGAP_READ_ONLY`, `EDGEGAP_APP_ALLOWLIST` and `EDGEGAP_MAX_DURATION_MINUTES` apply. Read [worker/DECISION.md](worker/DECISION.md) before exposing it beyond a private network.

Every push to `main` builds the image and pushes it to the Edgegap container registry as `registry.edgegap.com/<project>/edgegap-mcp`, tagged `main` and `sha-<commit>` (plus the version on `v*` tags). See [.github/workflows/docker.yml](.github/workflows/docker.yml) for the repository variables and secrets it needs.
Prebuilt images are published to `ghcr.io/edgegap/edgegap-mcp`, tagged `main` and `sha-<commit>` on every push to `main`, plus the version on `v*` tags:

```bash
docker run --rm -p 8080:8080 ghcr.io/edgegap/edgegap-mcp:0.3.0
```

## Development

Expand Down
Loading