ci: use gha cache and fix release-please triggers#966
Merged
gildesmarais merged 3 commits intomainfrom May 1, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions CI/release workflows to use GitHub Actions (GHA) BuildKit caching for Docker builds and to avoid running some Docker-related CI jobs on release-please PR branches.
Changes:
- Switch Docker Buildx layer caching from local filesystem cache to
type=ghain the release workflow. - Update CI Docker build/test jobs to use Buildx +
type=ghacaching instead of exporting/importing a tarball artifact. - Skip Docker build/test jobs for
release-please--*pull requests.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/workflows/release.yml | Replaces local Buildx cache steps with GHA cache configuration for Docker publish. |
| .github/workflows/ci.yml | Moves Docker smoke build/test to Buildx + GHA cache and adds branch-based job skipping for release-please PRs. |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the CI/release GitHub Actions workflows to use the GitHub Actions cache backend for Docker Buildx and adjusts CI execution for release-please PR branches.
Changes:
- Switch Docker build caching in the release workflow from local filesystem caching to
type=gha. - Rework CI Docker smoke image build/test flow to use Buildx +
type=ghacaching and skip the Docker jobs onrelease-please--*PR branches.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/release.yml | Replaces local Buildx layer caching with GitHub Actions cache (type=gha) for Docker publish builds. |
| .github/workflows/ci.yml | Uses Buildx + type=gha for smoke builds, adds gating to skip Docker jobs on release-please PR branches, and changes how the smoke image is made available to tests. |
Comment on lines
+161
to
+167
| - name: Load Docker smoke image from cache | ||
| uses: docker/build-push-action@v7 | ||
| with: | ||
| context: . | ||
| load: true | ||
| tags: html2rss/web | ||
| cache-from: type=gha |
| load: true | ||
| tags: html2rss/web | ||
| cache-from: type=gha | ||
| # No cache-to here; we only want to read the image built in the previous job |
| path: /tmp/html2rss-web-smoke-image.tar | ||
| retention-days: 1 | ||
| context: . | ||
| load: true |
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.
This pull request updates the Docker build and caching strategy in the CI and release GitHub Actions workflows. The main improvements are switching to GitHub Actions (GHA) cache storage for Docker layers, simplifying the build and test steps, and ensuring certain jobs are skipped for release-please branches.
CI Workflow improvements:
docker/build-push-actionwith GHA cache storage, streamlining the build and test process (.github/workflows/ci.yml). [1] [2].github/workflows/ci.yml). [1] [2]Release Workflow improvements:
.github/workflows/release.yml). [1] [2] [3]These changes make the workflows more efficient, easier to maintain, and better leverage GitHub Actions built-in caching for Docker images.