Skip to content

ci: add Dockerfile and build-and-publish workflow#8

Merged
RembrandtK merged 5 commits into
mainfrom
build-image-support
Apr 30, 2026
Merged

ci: add Dockerfile and build-and-publish workflow#8
RembrandtK merged 5 commits into
mainfrom
build-image-support

Conversation

@RembrandtK
Copy link
Copy Markdown
Contributor

  • Adds Dockerfile, docker-compose.yml, justfile for local image builds (source-carrier image: no entrypoint, consumed via multi-stage COPY downstream)
  • Adds .github/workflows/build.yaml to build and publish ghcr.io/graphprotocol/indexing-payments-subgraph on push to main, tag push, and workflow_dispatch. PRs build only.
  • Tags: :latest (default branch), :<tag> (tag push), :sha-<short> (always)

…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.
@RembrandtK RembrandtK requested a review from Copilot April 29, 2026 19:04
@RembrandtK RembrandtK marked this pull request as ready for review April 29, 2026 19:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, and justfile to 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.

Comment thread Dockerfile
Comment thread .github/workflows/build.yaml
Comment thread .github/workflows/build.yaml
Comment thread .github/workflows/build.yaml
Comment thread Dockerfile Outdated
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.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/workflows/build.yaml
@RembrandtK RembrandtK requested a review from MoonBoi9001 April 29, 2026 19:29
@RembrandtK RembrandtK merged commit 3be1cb5 into main Apr 30, 2026
6 checks passed
@RembrandtK RembrandtK deleted the build-image-support branch April 30, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants