From 612bc42700f611699b5dbdb542b53bf2fc79a6bb Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 23 Aug 2025 16:45:09 +0300 Subject: [PATCH] spindle/engines/nixery: add workflow id to container labels Adding the repo name there would've been useful but it's not readily available within SetupWorkflow. We'll... figure out how to add that later. Signed-off-by: Anirudh Oppiliappan --- spindle/engines/nixery/engine.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spindle/engines/nixery/engine.go b/spindle/engines/nixery/engine.go index 66bd1d0e..73e26065 100644 --- a/spindle/engines/nixery/engine.go +++ b/spindle/engines/nixery/engine.go @@ -201,6 +201,9 @@ func (e *Engine) SetupWorkflow(ctx context.Context, wid models.WorkflowId, wf *m Tty: false, Hostname: "spindle", WorkingDir: workspaceDir, + Labels: map[string]string{ + "sh.tangled.pipeline/workflow_id": wid.String(), + }, // TODO(winter): investigate whether environment variables passed here // get propagated to ContainerExec processes }, &container.HostConfig{ -- 2.51.2