0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-22 00:30:40 +00:00

Update documentation to reflect new syntax for Drone 0.5

This commit is contained in:
Jacob McCann 2016-10-20 19:27:05 +05:30
parent 2b3b526bda
commit 794e51347a

20
DOCS.md
View File

@ -17,8 +17,9 @@ Use the Terraform plugin to apply the infrastructure configuration contained wit
The following is a sample Terraform configuration in your .drone.yml file: The following is a sample Terraform configuration in your .drone.yml file:
```yaml ```yaml
deploy: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:0.5
plan: false plan: false
remote: remote:
backend: S3 backend: S3
@ -42,8 +43,9 @@ CA Certificate. You can inject your CA Certificate into the plugin by using
`ca_certs` key as described above. Below is an example. `ca_certs` key as described above. Below is an example.
```yaml ```yaml
deploy: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:0.5
plan: false plan: false
remote: remote:
backend: swift backend: swift
@ -56,7 +58,7 @@ deploy:
-----BEGIN CERTIFICATE----- -----BEGIN CERTIFICATE-----
asdfsadf asdfsadf
asdfsadf asdfsadf
-----END CERTIFICATE----- -----END CERTIFICATE-------
``` ```
## Suppress Sensitive Output ## Suppress Sensitive Output
@ -66,8 +68,9 @@ The output from the commands themselves will still display, it just won't show
want command is actually being ran. want command is actually being ran.
```yaml ```yaml
deploy: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:0.5
plan: false plan: false
sensitive: true sensitive: true
remote: remote:
@ -85,8 +88,9 @@ deploy:
You may want to assume another role before running the terraform commands. This is useful for cross account access, where a central account ahs privileges to assume roles in other accounts. Using the current credentials, this role will be assumed and exported to environment variables. See [the discussion](https://github.com/hashicorp/terraform/issues/1275) in the Terraform issues. You may want to assume another role before running the terraform commands. This is useful for cross account access, where a central account ahs privileges to assume roles in other accounts. Using the current credentials, this role will be assumed and exported to environment variables. See [the discussion](https://github.com/hashicorp/terraform/issues/1275) in the Terraform issues.
```yaml ```yaml
deploy: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:0.5
plan: false plan: false
remote: remote:
backend: S3 backend: S3
@ -104,8 +108,9 @@ deploy:
You may want to change directories before applying the terraform commands. This parameter is useful if you have multiple environments in different folders and you want to use different drone configurations to apply different environments. You may want to change directories before applying the terraform commands. This parameter is useful if you have multiple environments in different folders and you want to use different drone configurations to apply different environments.
```yaml ```yaml
deploy: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:0.5
plan: false plan: false
remote: remote:
backend: S3 backend: S3
@ -124,8 +129,9 @@ You may want to limit the number of concurrent operations as Terraform walks its
If you want to change Terraform's default parallelism (currently equal to 10) then set the `parallelism` parameter. If you want to change Terraform's default parallelism (currently equal to 10) then set the `parallelism` parameter.
```yaml ```yaml
deploy: pipeline:
terraform: terraform:
image: jmccann/drone-terraform:0.5
plan: false plan: false
remote: remote:
backend: S3 backend: S3