mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
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:
co-authored by
Dean Sheather
parent
74b6d12a8a
commit
8dd7d8b882
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user