Expose the trigger tag as a run environment variable (parity with branch / SHA)
Tag-triggered runs do not include the triggering tag in the run environment. There is no analogue to TF_VAR_spacelift_commit_branch or TF_VAR_spacelift_commit_sha for tags, despite the tag being the trigger and being available internally (visible in the UI and queryable via the GraphQL API as stack.run.commit.tag). Any consumer that needs the tag inside Terraform has to fetch it out-of-band.
- Workaround
- Problem
Status: ⬆️ Gathering votes
Log in to comment and vote
No comments yet
Be the first to share your thoughts.