Repository navigation
Publish the Docker image to GHCR on every release tag - #249
Merged
Merged
Conversation
.github/workflows/docker.yml builds ghcr.io/antiv/mate for linux/amd64 and linux/arm64 on every v* tag (or by hand), tagged with the version, the minor version and latest. It first builds the image for the runner and starts it; nothing is pushed unless it answers /health within three minutes. Separate from release.yml so neither blocks the other. Third-party actions are pinned by commit, as in dependency-upgrade.yml. README and docs/dev/deployment.md show the one-command docker run, with DB_PATH and a volume so the SQLite database survives, and how to use the agents from an MCP client.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Running MATE in Docker meant cloning the repo and building the image locally with
docker-compose up --build, because no image was published. A published image turns that into a singledocker run. It may also count toward "Offers Easy Installation" on the LobeHub market listing, but LobeHub's rule for that isn't published.Change
New
.github/workflows/docker.yml:v*tag, the same trigger asrelease.ymlworkflow_dispatch)ghcr.io/antiv/mateforlinux/amd64andlinux/arm64.1.5.0,1.5andlatestfor a releaseAUTH_PASSWORDset, and waits up to 180 seconds for/healthto answer. If it doesn't, the workflow prints the container log and pushes nothing.release.yml, so a failed image build doesn't block the GitHub release, and the other way round.dependency-upgrade.yml. All are releases at least two weeks old. The build uses the GitHub Actions cache.contents: read,packages: write. Login usesGITHUB_TOKEN.The README and
docs/dev/deployment.mdshow thedocker runcommand:DB_PATH=data/my_agent_data.dbwith a volume on/app/data, so the SQLite database survives the container. Without it the database is in/app.MCP_EXPOSED_AGENTS, a personal access token,/agents/<agent>/mcp.The CHANGELOG
[Unreleased]has an Added entry.Checked
GitHub Actions itself hasn't run this workflow yet; that happens on the first tag or manual run. Locally I checked:
git archiveofmain(linux/arm64, Docker 29.8)./healthafter about 12 seconds.DB_PATHplus a volume,MCP_EXPOSED_AGENTS=mate_help) creates the database on the volume./agents/mate_help/mcp/healthanswers,tools/listwithout credentials returns 401, and with Basic auth it returns the tool.After merging
ghcr.io/antiv/mateas private, which is GHCR's default. Go to Package settings → Change visibility → Public. Until then,docker pullneeds a login.maintag.