Skip to content

fix(ci): bake build provenance into the profiling image (status page version)#639

Merged
CybotTM merged 1 commit into
mainfrom
fix/profiling-build-metadata
Jul 16, 2026
Merged

fix(ci): bake build provenance into the profiling image (status page version)#639
CybotTM merged 1 commit into
mainfrom
fix/profiling-build-metadata

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 16, 2026

Copy link
Copy Markdown
Member

The prod hot-deploy runs the :profiling-<sha> image, but only the app (release) bake target baked APP_BUILD_REVISION/REF/DATE. app-profiling inherited only _common and passed no build args, so the deployed image had them empty and /ui/admin/status showed "unknown" for the version.

Fix

  • docker-bake.hcl: add the args = { APP_BUILD_REVISION = GIT_SHA, APP_BUILD_REF = GIT_REF, APP_BUILD_DATE = BUILD_DATE } block to the app-profiling target (mirroring app).
  • docker-publish.yml: pass GIT_REF + BUILD_DATE to the profiling build step (it only passed GIT_SHA).

Verification

docker buildx bake app-profiling --print resolves the target with the three APP_BUILD_* args populated. Dockerfile (profiling stage) + the frontend BuildSection already consume them — after this builds + deploys, the status page shows the deployed commit / ref / date and the up-to-date check.

Note: modifies a .github/workflows/ file, so it needs a manual merge (the default token lacks the workflows scope).

Copilot AI review requested due to automatic review settings July 16, 2026 07:54

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the docker-bake.hcl file to bake build provenance arguments (APP_BUILD_REVISION, APP_BUILD_REF, and APP_BUILD_DATE) into the app-profiling target image. This ensures that the /ui/admin/status page correctly displays the deployed commit, reference, and date when running the profiling image. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

The prod hot-deploy runs the :profiling-<sha> image, but only the `app` (release)
bake target set APP_BUILD_REVISION/REF/DATE — `app-profiling` inherited only
_common and passed no build args, so the deployed image had them empty and
/ui/admin/status showed "unknown". Add the args to app-profiling and pass
GIT_REF + BUILD_DATE (not just GIT_SHA) to the profiling build step, so the status
page shows the deployed commit, ref and build date.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@CybotTM
CybotTM force-pushed the fix/profiling-build-metadata branch from cdf623a to 7c92dbe Compare July 16, 2026 08:05
@CybotTM
CybotTM merged commit 41d76c2 into main Jul 16, 2026
15 checks passed
@CybotTM
CybotTM deleted the fix/profiling-build-metadata branch July 16, 2026 08:16
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