Skip to content

Add cache to building hub image in CI#2037

Open
gtardif wants to merge 4 commits intodocker:mainfrom
gtardif:cache_image_CI
Open

Add cache to building hub image in CI#2037
gtardif wants to merge 4 commits intodocker:mainfrom
gtardif:cache_image_CI

Conversation

@gtardif
Copy link
Contributor

@gtardif gtardif commented Mar 10, 2026

No description provided.

dgageot
dgageot previously approved these changes Mar 10, 2026
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
gtardif added 3 commits March 10, 2026 22:47
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This reverts commit 07bbc46.
@gtardif
Copy link
Contributor Author

gtardif commented Mar 11, 2026

Run first commit:
Screenshot 2026-03-10 at 22 52 40

Second commit (also running go buid and tests on same runner):
Screenshot 2026-03-10 at 22 52 18

This does not fix the mounts for go build, only fixes the docker layer cache

@gtardif gtardif marked this pull request as ready for review March 11, 2026 08:41
@gtardif gtardif requested a review from a team as a code owner March 11, 2026 08:41
Copy link

@docker-agent docker-agent bot left a comment

Choose a reason for hiding this comment

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

Review Summary

Assessment: 🟡 NEEDS ATTENTION

This PR adds Docker build caching to the CI workflow and consolidates the build step into the test job. The workflow refactoring looks good, but there's one notable issue with version traceability in PR builds.

Findings

1 medium severity issue found:

  • Build args set to static values for PRs will break version traceability

Recommendation: Update the GIT_TAG and GIT_COMMIT build args to use actual PR metadata instead of static values.

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.

2 participants