Skip to content

Add CI workflow to verify Docker build - #180

Open
Mustaphayinka wants to merge 3 commits into
google:copybara_pushfrom
Mustaphayinka:docker-build-ci-issue-178
Open

Add CI workflow to verify Docker build#180
Mustaphayinka wants to merge 3 commits into
google:copybara_pushfrom
Mustaphayinka:docker-build-ci-issue-178

Conversation

@Mustaphayinka

Copy link
Copy Markdown

Fixes #178, the build verification part.

This adds a GitHub Actions workflow to build the project’s Dockerfile whenever a push or pull request changes either the Dockerfile or the workflow itself. It is meant to catch build breakage early, as requested.
It covers only the “building the Docker image” part of the issue. It does not include publishing or deployment to Docker Hub, GHCR, or any other location. That work requires registry credentials and a maintainer’s decision about where the images should live, so I’ve left it out for now. I can take it on in a follow-up PR if that would be useful.
It uses docker/build-push-action with push set to false, meaning it only builds and verifies the image; nothing is pushed anywhere. I added GitHub Actions layer caching with type=gha as well, which keeps repeated runs fast. The workflow triggers only when the Dockerfile or this workflow file changes, rather than running on every unrelated commit.

@google-cla

google-cla Bot commented Aug 20, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

Docker Build in CI Workflow

1 participant