mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 16:42:35 +00:00
upgrade examples to @v3 (#377)
This commit is contained in:
parent
1b93182764
commit
d648ba0239
1 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
|
@ -19,14 +19,14 @@ The default configuration installs the latest version of Terraform CLI and insta
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v3
|
||||||
```
|
```
|
||||||
|
|
||||||
A specific version of Terraform CLI can be installed:
|
A specific version of Terraform CLI can be installed:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v3
|
||||||
with:
|
with:
|
||||||
terraform_version: "1.1.7"
|
terraform_version: "1.1.7"
|
||||||
```
|
```
|
||||||
|
|
@ -35,7 +35,7 @@ Credentials for Terraform Cloud ([app.terraform.io](https://app.terraform.io/))
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v3
|
||||||
with:
|
with:
|
||||||
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
@ -44,7 +44,7 @@ Credentials for Terraform Enterprise (TFE) can be configured:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v3
|
||||||
with:
|
with:
|
||||||
cli_config_credentials_hostname: 'terraform.example.com'
|
cli_config_credentials_hostname: 'terraform.example.com'
|
||||||
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
|
||||||
|
|
@ -54,7 +54,7 @@ The wrapper script installation can be skipped by setting the `terraform_wrapper
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v3
|
||||||
with:
|
with:
|
||||||
terraform_wrapper: false
|
terraform_wrapper: false
|
||||||
```
|
```
|
||||||
|
|
@ -63,7 +63,7 @@ Subsequent steps can access outputs when the wrapper script is installed:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v3
|
||||||
|
|
||||||
- run: terraform init
|
- run: terraform init
|
||||||
|
|
||||||
|
|
@ -91,7 +91,7 @@ permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v3
|
||||||
|
|
||||||
- name: Terraform fmt
|
- name: Terraform fmt
|
||||||
id: fmt
|
id: fmt
|
||||||
|
|
@ -159,7 +159,7 @@ permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: hashicorp/setup-terraform@v2
|
- uses: hashicorp/setup-terraform@v3
|
||||||
|
|
||||||
- name: Terraform fmt
|
- name: Terraform fmt
|
||||||
id: fmt
|
id: fmt
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue