Skip to content

[feat] Tofu Plan&Apply centralised action #10

@jbaldodiego

Description

@jbaldodiego

Context

To assist in the OpenTofu implementation we need a centralised action that we can use to both show the TF Plan with the expected changes in PRs and to apply the TF code after merging with main.

This action should allow us to define when we run plan and when we run apply, so we can ensure that TF code only when the branch in which it is run is main.

Ideally, we should use this action as a wrapper for the Tofu checkout(https://github.com/marketplace/actions/opentofu-setup-tofu) and tf-via-pr (https://github.com/OP5dev/TF-via-PR) actions since that solves pretty much all of our use case, and just use the workflow invocation of this action to pass the config we desire, like tf code directory, when to use plan and apply, etc...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Infrastructure.

    Projects

    Status

    Ready for Work

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions