I want to create a procedure which checks for the specific stack vestacenes if there are new images available. If yes it pulls them and redeploys the stack. All works as expected and the stack gets redeployed (if new images are available). But the stack is linked against a repo buerinfra and as soon as the procedure vestascenes-update will be executed all local changes within the repository will be removed. I would like to avoid this as I have a mono-repository setup and from time to time I have some configuration changes locally available which I have not commited yet. Any ideas how to change this behaviour?
stack and procedure TOM:
[[stack]]
name = "vestascenes"
[stack.config]
server = "Buer"
poll_for_updates = true
auto_update = true
auto_update_all_services = true
linked_repo = "buerinfra"
run_directory = "projects/vestascenes/"
[[procedure]]
name = "vestascenes-update"
config.schedule = "Run every 5 Minutes"
[[procedure.config.stage]]
name = "Stage 1"
enabled = true
executions = [
{ execution.type = "PullStack", execution.params.stack = "vestascenes", execution.params.services = [], enabled = true },
{ execution.type = "DeployStackIfChanged", execution.params.stack = "vestascenes", enabled = true }
]
git-status before I run the procedure:
jakez@buernas:/volume1/docker/komodo/repos/buerinfra$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: projects/homeassistant/appdaemon/conf/apps/music_changesource.py
no changes added to commit (use "git add" and/or "git commit -a")
git-status after I run the procedure:
jakez@buernas:/volume1/docker/komodo/repos/buerinfra$ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
I want to create a procedure which checks for the specific stack
vestacenesif there are new images available. If yes it pulls them and redeploys the stack. All works as expected and the stack gets redeployed (if new images are available). But the stack is linked against a repobuerinfraand as soon as the procedurevestascenes-updatewill be executed all local changes within the repository will be removed. I would like to avoid this as I have a mono-repository setup and from time to time I have some configuration changes locally available which I have not commited yet. Any ideas how to change this behaviour?stack and procedure TOM:
git-status before I run the procedure:
git-status after I run the procedure: