ci: add Dockerfile and build-and-publish workflow#8
Merged
Conversation
…uilds Packages subgraph source + prebuilt node_modules as ghcr.io/graphprotocol/indexing-payments-subgraph:local for multi-stage COPY consumption by downstream deployers (e.g. edgeandnode/local-network subgraph-deploy). No entrypoint: source carrier only.
Builds and publishes ghcr.io/graphprotocol/indexing-payments-subgraph on push to main, on tag push, and via manual workflow_dispatch. Pull requests build only (no push). Tags: :latest on default branch, :<tag> on tag push, :sha-<short> always.
There was a problem hiding this comment.
Pull request overview
Adds container build tooling and a GitHub Actions workflow to build/publish a “source-carrier” Docker image for indexing-payments-subgraph, intended to be consumed by downstream multi-stage builds.
Changes:
- Add
Dockerfile,docker-compose.yml, andjustfileto build/tag the image locally. - Add a GitHub Actions workflow to build and publish the image to GHCR on
main, version tags, and manual dispatch (PRs build only). - Ignore
.claude/in git.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
justfile |
Adds a build-image helper that runs docker compose build. |
docker-compose.yml |
Defines a buildable image/tag for local usage. |
Dockerfile |
Builds a Node-based image containing the repo source + installed dependencies. |
.gitignore |
Adds .claude/ to ignored paths. |
.github/workflows/build.yaml |
Adds build/publish workflow with tagging and registry caching. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Excludes VCS, CI config, local agent/editor state, the local node_modules tree, downstream-regenerated build artefacts, and the Docker tooling itself from the image build context. Prevents the COPY step from clobbering the cleanly-installed deps from npm ci and keeps the image lean.
GITHUB_TOKEN does not have package-write scope on PRs from forks, and the buildcache export would fail. Skip docker/login-action and clear cache-to on pull_request so PR runs build cleanly without registry writes. cache-from stays on (read-only) so PRs still benefit from any existing buildcache entries.
Node 24 is the active LTS line as of 2025-10. Drops the previous non-LTS Node 23 pin and aligns with the Node 24 default runtime that the modern docker/* actions now use. Major-pinned (no minor) so the image picks up ongoing 24.x security updates.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MoonBoi9001
approved these changes
Apr 30, 2026
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.
Dockerfile,docker-compose.yml,justfilefor local image builds (source-carrier image: no entrypoint, consumed via multi-stage COPY downstream).github/workflows/build.yamlto build and publishghcr.io/graphprotocol/indexing-payments-subgraphon push to main, tag push, andworkflow_dispatch. PRs build only.:latest(default branch),:<tag>(tag push),:sha-<short>(always)