Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ jobs:
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
env:
GIT_SHA: ${{ github.sha }}
GIT_REF: ${{ github.ref_name }}
BUILD_DATE: ${{ env.BUILD_DATE }}
with:
source: .
targets: app-profiling
Expand Down
8 changes: 8 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ target "app-e2e" {
target "app-profiling" {
inherits = ["_common"]
target = "profiling"
# Bake the build provenance into the profiling image too (like the `app` target),
# so /ui/admin/status shows the deployed commit/ref/date — the prod hot-deploy runs
# :profiling-<sha>, not the release image, so without this the page reads "unknown".
args = {
APP_BUILD_REVISION = GIT_SHA
APP_BUILD_REF = GIT_REF
APP_BUILD_DATE = BUILD_DATE
}
tags = compact([
"${REGISTRY}/${IMAGE_NAME}:profiling",
GIT_SHA != "" ? "${REGISTRY}/${IMAGE_NAME}:profiling-${GIT_SHA}" : "",
Expand Down
Loading