Reuse BuildKit cache in release Docker builds
Maintainers usually reply within 1 day
A pull request for this has already been merged.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 73/100
Research direction
Read .github/workflows/docker.yml for the existing image-specific cache scopes, then find the release workflow's docker/build-push-action steps. Add matching cache-from and cache-to settings for each image, run a repeated release build to confirm cache hits and correctness, and compare build durations while accounting for cache export time.
Written by the indexing model from the issue text.
Description
Summary
The release workflow builds and pushes all three images, but its docker/build-push-action steps do not configure cache-from or cache-to. The CI Docker workflow already uses the GitHub Actions BuildKit cache, so release builds can repeat dependency restore and compilation work.
Proposed change
Add per-image GitHub Actions cache import/export to the release workflow, using the same image-specific scopes as .github/workflows/docker.yml:
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,mode=max,scope=${{ matrix.image }}
Acceptance criteria
- Release builds import and export a cache per image.
- Cache scopes match the CI Docker workflow.
- A repeated build with unchanged inputs shows cache hits and does not regress release correctness.
- Compare build durations before and after; note that exporting a large cache also has a cost.
- Dominant language
- C#
- Stars
- 0
- Forks
- 2
- Avg merge
- 5h 1m
- Merged PRs (30d)
- 30
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Dome-Works/DOME
-
enhancement good first issue
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Dome-Works/DOME#123 ·
Maintainers usually reply within 1 day
-
enhancement
Dome-Works/DOME#117 ·
Maintainers usually reply within 1 day
-
Research authentication, 2fa and backup codes.Possibly taken @MathijsNabbe claimed this 11 days ago. Open
Dome-Works/DOME#116 · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement
Dome-Works/DOME#115 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 20/100
Dome-Works/DOME#109 ·
Maintainers usually reply within 1 day
Similar issues
-
possible bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Include host.wslc.internal in the HTTPS development certificatePossibly taken @afscrome claimed this today. Openarea-commandlinetools
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dotnet/aspnetcore#70122 · 1 comment ·
Maintainers usually reply within 1 day
-
:1st_place_medal: good first issue :cowboy_hat_face: refactor :roller_coaster: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ApplETS/Backend-Hello#78 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Altinn/altinn-studio#21642 ·
Maintainers usually reply within 1 day