Add support for gpu-rent.vars and enhance git update functionality
- Updated .gitignore to include gpu-rent.vars. - Modified env.example to introduce the UPDATE_GIT variable for controlling git updates during execution. - Implemented Import-GpuRentVars function in gpu-rent.ps1 to load environment variables from gpu-rent.vars. - Enhanced gpu-rent.sh to support loading variables from gpu-rent.vars and added logic for handling default and extra arguments. - Updated CLI documentation to reflect the new gpu-rent.vars file and its usage in configuration. - Improved bootstrap and provisioning logic to conditionally perform git updates based on the new configuration.
This commit is contained in:
+7
-1
@@ -1,6 +1,12 @@
|
||||
# Расширения: git-репы на первый bootstrap
|
||||
|
||||
Срабатывает вместе с первым диском и первым инстансом, **до** первого старта SwarmUI (C# extensions компилируются при запуске). Повторный `up` на уже засеянный диск только догоняет новые строки манифеста (идемпотентный `git fetch`).
|
||||
Срабатывает на каждом `up` (и `seed-extensions`):
|
||||
|
||||
- нет каталога → `git clone`;
|
||||
- каталог есть → по умолчанию `fetch` + `reset --hard` на `ref` (или текущую ветку для уже установленных вне yaml);
|
||||
- `--no-update` / `UPDATE_GIT=false` → существующие репы не трогаем, только недостающие clone.
|
||||
|
||||
Также обновляется сам SwarmUI в `/opt/swarmui` (тот же флаг).
|
||||
|
||||
Два разных мира — не путать:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user