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
-
Plugin environment variables exposed to all tofu commands. In contrast to the step environment, this option can be used if environment variables are to be used in conjunction with
from_secret
. Example:steps: - name: tofu image: quay.io/thegeeklab/wp-opentofu settings: actions: - plan environment: AWS_ACCESS_KEY_ID: from_secret: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: from_secret: AWS_SECRET_ACCESS_KEY
Default: none -
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