Automatically Sync Git on All Runs

In certain situations, such as when webhooks cannot be configured, Spacelift does not reliably detect new Git commits. As a result, manually triggered runs may execute against an outdated commit.

To avoid this, a task or run should always initiate a Git sync to ensure the stack is operating against the latest commit on its tracked branch. This would provide predictable behaviour, particularly for environments where webhook delivery is unreliable or not possible.

Stacks that must remain pinned to stable commits could instead track a tag, as described here: https://feedback.spacelift.io/p/support-for-configuring-a-spacelift-stack-to-track-a-git

Workaround
Running `spacectl stack sync-commit` before triggering a manual run.
Problem
A "Sync" button exists, but it is only shown when Spacelift has already detected a change. When no change is detected, which is often the scenario where manual syncing is required, the button is hidden.

Please authenticate to join the conversation.

Upvoters
Status

πŸ”­ Discovery

Board

πŸ’‘ Feature Requests

Tags

VCS

Date

2 months ago

Subscribe to post

Get notified by email when there are changes.