Skip to content

Add Docker image build to CI - #179

Open
danielgaskins wants to merge 2 commits into
google:copybara_pushfrom
danielgaskins:ci/docker-build-workflow
Open

Add Docker image build to CI#179
danielgaskins wants to merge 2 commits into
google:copybara_pushfrom
danielgaskins:ci/docker-build-workflow

Conversation

@danielgaskins

@danielgaskins danielgaskins commented Aug 20, 2026

Copy link
Copy Markdown

Fixes #178

Adds a dedicated GitHub Actions workflow that builds the Docker image on pushes and pull requests targeting master, main, or copybara_push.

The workflow uses Docker Buildx, does not publish the image, and caches dependency layers between builds. Cache export failures remain nonfatal so they cannot hide an image build failure.

Testing

  • actionlint .github/workflows/docker-build.yml
  • zizmor --format plain .github/workflows/docker-build.yml

A full image build requires Docker and will run in the new CI job.

  • Relevant local checks pass
  • No documentation changes are needed

Use immutable action revisions to satisfy the repository's mandatory
zizmor policy. Disable checkout credential persistence because later
steps do not need GitHub credentials.
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