Allow to specify global build directory (#6276)

This commit is contained in:
Alexander Puzynia authored and GitHub committed 2024-02-26 11:26:08 +13:00
1 parent b5e633a2f3
commit a8ab745479
2 files changed
+9 -2

No files matched your search

+6
View File
@@ -21,4 +21,10 @@ export PLATFORMIO_PLATFORMS_DIR="${pio_cache_base}/platforms"
export PLATFORMIO_PACKAGES_DIR="${pio_cache_base}/packages"
export PLATFORMIO_CACHE_DIR="${pio_cache_base}/cache"
# If /build is mounted, use that as the build path
# otherwise use path in /config (so that builds aren't lost on container restart)
if [[ -d /build ]]; then
export ESPHOME_BUILD_PATH=/build
fi
exec esphome "$@"