wp-opentofu
Woodpecker CI plugin to manage infrastructure with OpenTofu.
steps:
- name: tofu
image: quay.io/thegeeklab/wp-opentofu
settings:
actions:
- validate
- plan
-
Tofu actions to execute.Default: validate,plan,apply
-
Options for the fmt command, see the OpenTofu fmt command documentation.Default: none
-
Tofu init command options, see the OpenTofu init command documentation.Default: none
-
Skip SSL verification.Default: false
-
Plugin log level.Default: info
-
Suppress tofu command output for
plan
,apply
anddestroy
action.Default: false -
Number of concurrent operations.Default: 0
-
Enables refreshing of the state before
plan
andapply
commands.Default: true -
Root directory where the tofu files live.Default: none
-
Targets to run
plan
orapply
action on.Default: none -
Tofu version to use.Default: none
Build the binary with the following command:
make build
Build the Container image with the following command:
docker build --file Containerfile.multiarch --tag thegeeklab/wp-opentofu .
docker run --rm \
-e PLUGIN_ACTION=validate \
-v $(pwd):/build:z \
-w /build \
thegeeklab/wp-opentofu