Skip to content

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

Description

@ermos

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! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions