From 8dd7d8b88260e92590dd5cfd514097cb351762b8 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Tue, 13 Jan 2026 12:45:50 +0000 Subject: [PATCH] chore: clean up coder build directory on shutdown (#21490) Adds a step to delete the `build/` directory inside the Coder repo on shutdown. --------- Co-authored-by: Dean Sheather --- dogfood/coder/main.tf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dogfood/coder/main.tf b/dogfood/coder/main.tf index c84f0f8c42..b74a93975a 100644 --- a/dogfood/coder/main.tf +++ b/dogfood/coder/main.tf @@ -632,6 +632,9 @@ resource "coder_agent" "dev" { # accumulating waste and growing too large. go clean -cache + # Clean up the coder build directory as this can get quite large + rm -rf "${local.repo_dir}/build" + # Clean up the unused resources to keep storage usage low. # # WARNING! This will remove: