deploy = true on Stack not triggering automatic deployment after Resource Sync via webhook #1578

Open
opened 2026-03-22 17:35:16 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ermos on GitHub (Jan 25, 2026).

Hi there! 👋

First of all, thanks for the amazing work on Komodo - it's been great to use so far!

I have a Resource Sync configured to manage my stacks via a Git repository. When I push changes to GitHub, the webhook triggers correctly and the sync updates the stack configuration (tags, compose file changes are detected and visible on the ui). However, despite having deploy = true set on my stack, the deployment does not happen automatically. I have to manually click "Redeploy" or "Check" button on each updated stack in the UI.

Is deploy = true supposed to auto-deploy when triggered via the Execute Sync webhook? Or is manual confirmation always required? If manual confirmation is by design, is there a way to enable fully automatic deployments via Resource Sync?

Current behavior:

  • Webhook is received (HTTP 200 response)
  • Resource Sync runs and detects changes
  • Stack tags are updated correctly
  • But the deploy action is not executed automatically - it waits for manual confirmation

Expected behavior:

  • With deploy = true, the stack should be automatically redeployed when the sync detects relevant changes (like compose.yaml modifications)

Configuration:

Resource Sync TOML:

[[resource_sync]]
name = "infra"
[resource_sync.config]
repo = "xxx/infra"
git_account = "xxx"
webhook_secret = "xxx"
resource_path = ["stacks", "variables.toml"]
include_variables = true

Stack TOML:

[[stack]]
tags = ["sha:31d5624"]
name = "service-a"
description = "xxx"
deploy = true

[stack.config]
server = "local"
run_directory = "stacks/service-a"
git_account = "xxx"
repo = "xxx/infra"
branch = "main"
send_alerts = false
auto_pull = true
auto_update = true
poll_for_updates = true
destroy_before_deploy = true
environment = """
....
..."""

What I've verified:

  • Using the "Webhook Url - Execute Sync" (not Refresh)
  • GitHub webhook returns 200
  • webhook_enabled = true is set in the sync config
  • deploy = true is set at the stack root level (not inside [stack.config])
  • Tags are being updated on each push, confirming the sync works
  • Komodo Core logs show no errors related to webhooks

Environment:

  • Komodo version: v2.0.0-dev-112

Thanks in advance for your help! 🙏

Originally created by @ermos on GitHub (Jan 25, 2026). Hi there! 👋 First of all, thanks for the amazing work on Komodo - it's been great to use so far! I have a Resource Sync configured to manage my stacks via a Git repository. When I push changes to GitHub, the webhook triggers correctly and the sync updates the stack configuration (tags, compose file changes are detected and visible on the ui). However, despite having `deploy = true` set on my stack, the deployment does not happen automatically. I have to manually click "Redeploy" or "Check" button on each updated stack in the UI. Is `deploy = true` supposed to auto-deploy when triggered via the Execute Sync webhook? Or is manual confirmation always required? If manual confirmation is by design, is there a way to enable fully automatic deployments via Resource Sync? **Current behavior:** - Webhook is received (HTTP 200 response) - Resource Sync runs and detects changes - Stack tags are updated correctly - **But the deploy action is not executed automatically** - it waits for manual confirmation **Expected behavior:** - With `deploy = true`, the stack should be automatically redeployed when the sync detects relevant changes (like compose.yaml modifications) **Configuration:** Resource Sync TOML: ```toml [[resource_sync]] name = "infra" [resource_sync.config] repo = "xxx/infra" git_account = "xxx" webhook_secret = "xxx" resource_path = ["stacks", "variables.toml"] include_variables = true ``` Stack TOML: ```toml [[stack]] tags = ["sha:31d5624"] name = "service-a" description = "xxx" deploy = true [stack.config] server = "local" run_directory = "stacks/service-a" git_account = "xxx" repo = "xxx/infra" branch = "main" send_alerts = false auto_pull = true auto_update = true poll_for_updates = true destroy_before_deploy = true environment = """ .... ...""" ``` **What I've verified:** - Using the "Webhook Url - Execute Sync" (not Refresh) - GitHub webhook returns 200 - `webhook_enabled = true` is set in the sync config - `deploy = true` is set at the stack root level (not inside `[stack.config]`) - Tags are being updated on each push, confirming the sync works - Komodo Core logs show no errors related to webhooks **Environment:** - Komodo version: v2.0.0-dev-112 Thanks in advance for your help! 🙏
Author
Owner

@mbecker20 commented on GitHub (Jan 27, 2026):

What does the Run Sync update logs show? I'm not sure I can see a reason why it would do the deploy if you call the api manually via frontend vs the webhook listener calling it. For example you should see an Run Sync Update log by "Webhook User" when the webhooks calls (like when the Tags are updated), vs your username when you call "manually" from the UI. You should be seeing both of these and if you don't then maybe the webhook isn't actually triggering. You click on what is shown in screenshot to see the full logs.

Image
@mbecker20 commented on GitHub (Jan 27, 2026): What does the Run Sync update logs show? I'm not sure I can see a reason why it would do the deploy if you call the api manually via frontend vs the webhook listener calling it. For example you should see an Run Sync Update log by "Webhook User" when the webhooks calls (like when the Tags are updated), vs your username when you call "manually" from the UI. You should be seeing both of these and if you don't then maybe the webhook isn't actually triggering. You click on what is shown in screenshot to see the full logs. <img width="514" height="138" alt="Image" src="https://github.com/user-attachments/assets/79f89d71-e84a-4e46-8b61-1227e58b40d4" />
Author
Owner

@EoinFarrell commented on GitHub (Feb 7, 2026):

deploy is not a field on the Stack object, see: https://docs.rs/komodo_client/latest/komodo_client/entities/stack/type.Stack.html or source code: https://github.com/moghtech/komodo/blob/main/client/core/rs/src/entities/stack.rs.
I'm looking into auto deploy's myself at the moment and it seems like a webhook call for each stack may be the cleanest if a bit cumbersome to setup

@EoinFarrell commented on GitHub (Feb 7, 2026): `deploy` is not a field on the Stack object, see: https://docs.rs/komodo_client/latest/komodo_client/entities/stack/type.Stack.html or source code: https://github.com/moghtech/komodo/blob/main/client/core/rs/src/entities/stack.rs. I'm looking into auto deploy's myself at the moment and it seems like a webhook call for each stack may be the cleanest if a bit cumbersome to setup
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#1578