Expose Run Promotion Flag in Payload

It would be great if you were able to include a Boolean flag for promoted runs in the run portion of the data input payload. This would be useful for crafting plan and approval policies.

We allow run promotion to be enabled in environments beyond DEV, but we require special approval for QA and STAGE if it’s not being deployed through the normal PR process. We can typically determine if it was a run promotion by trying to compare the stack’s branch with the run’s branch, but that’s not always possible since setting commit sha with spacectl or other methods sometimes puts “-” as the branch.

It would be much simpler to just check if promoted_run: true and that the stack has a qa or stage label to require an approval.

Run Promotion - Spacelift Documentation
Approval policy - Spacelift Documentation
Plan policy - Spacelift Documentation

Please authenticate to join the conversation.

Upvoters
Status

⬆️ Gathering votes

Board

💡 Feature Requests

Tags

Access Control

Date

About 1 month ago

Subscribe to post

Get notified by email when there are changes.