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 <dean@deansheather.com>
This commit is contained in:
Cian Johnston
2026-01-13 12:45:50 +00:00
committed by GitHub
co-authored by Dean Sheather
parent 74b6d12a8a
commit 8dd7d8b882
+3
View File
@@ -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: