Files
windmill/.github/docker-bake-ee.hcl
T
Ruben FiszelandClaude Opus 5.5 2688493736 perf: build the ee debug file in the same depot build as the image (#12339)
* perf: build the ee debug file in the same depot build as the image

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: sign the ee image before uploading its debug files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* TEMP: verify debuglink crc on dispatch

* chore: drop the temporary debuglink check

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: keep a failed debug upload from blocking the ee release

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:03:23 +01:00

37 lines
1014 B
HCL

# EE image and its debug file from one build: both targets share the builder
# stage, so the binary is compiled once and the .gnu_debuglink CRC in the shipped
# binary matches the uploaded debug file. Building them separately recompiles.
variable "WM_BUILD_VERSION" {}
variable "SBOM" {
default = "false"
}
# Tags and labels, filled in by docker/metadata-action's bake files.
target "docker-metadata-action" {}
target "_ee" {
context = "."
dockerfile = "Dockerfile"
platforms = ["linux/amd64", "linux/arm64"]
args = {
features = "ee"
WM_BUILD_VERSION = WM_BUILD_VERSION
}
}
target "image" {
inherits = ["_ee", "docker-metadata-action"]
output = ["type=registry"]
attest = SBOM == "true" ? ["type=sbom"] : []
}
# Writes ./debuginfo/linux_<arch>/windmill.debug. The file names every EE
# function with its source file and line: never push or publish it.
target "debuginfo" {
inherits = ["_ee"]
target = "debuginfo"
output = ["type=local,dest=./debuginfo"]
}