Releases: dflook/terraform-github-actions
v1.20.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.20.0
to use exactly this release@v1.20
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Added
-
New
text_plan_path
andjson_plan_path
outputs for dflook/terraform-apply to match the outputs for dflook/terraform-plan.These are paths to the generated plan in human-readable and JSON formats.
If the plan generated by dflook/terraform-plan is different from the plan generated by dflook/terraform-apply the apply step will fail with
failure-reason
set toplan-changed
. These new outputs make it easier to inspect the differences.
v1.19.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.19.0
to use exactly this release@v1.19
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Changed
- When triggered by
issue_comment
orpull_request_review_comment
events, the action will first add a 👍 reaction to the comment - PR comment status messages include a single emoji that shows progress at a glance
- Actions that don't write to the terraform state no longer lock it.
v1.18.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.18.0
to use exactly this release@v1.18
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Added
-
A new
replace
input for dflook/terraform-plan and dflook/terraform-applyThis instructs terraform to replace the specified resources, and is available with terraform versions that support replace (v0.15.2 onwards).
with: replace: | random_password.database
-
A
target
input for dflook/terraform-plan to match dflook/terraform-applytarget
limits the plan to the specified resources and their dependencies. This change removes the restriction thattarget
can only be used withauto_approve
.with: target: | kubernetes_secret.tls_cert_public kubernetes_secret.tls_cert_private
v1.17.3
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.17.3
to use exactly this release@v1.17
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Fixed
- Compatability with Terraform v1.0.10 - Thanks kylewlacy !
- Now makes even fewer github api requests to avoid rate limiting.
v1.17.2
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.17.2
to use exactly this release@v1.17
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Fixed
- Add
terraform plan
output that was missing from the workflow log
v1.17.1
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.17.1
to use exactly this release@v1.17
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Fixed
-
Fix ownership of files created in runner mounted directories
As the container is run as root, it can cause issues when root owned files are leftover that the runner can't cleanup.
This would only affect self-hosted, non-ephemeral, non-root runners.
v1.17.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.17.0
to use exactly this release@v1.17
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Added
-
variables
andvar_file
support for remote operations in Terraform Cloud/Enterprise.The Terraform CLI & Terraform Cloud/Enterprise do not support using variables or variable files with remote plans or applies.
We can do better.variables
andvar_file
input variables for the plan, apply & check actions now work, with the expected behavior.
v1.16.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.16.0
to use exactly this release@v1.16
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Added
-
dflook/terraform-plan has gained two new outputs:
json_plan_path
is a path to the generated plan in a JSON format filetext_plan_path
is a path to the generated plan in a human readable text file
These paths are relative to the GitHub Actions workspace and can be read by other steps in the same job.
v1.15.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.15.0
to use exactly this release@v1.15
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Added
-
Actions that intentionally cause a build failure now set a
failure-reason
output to enable safely responding to those failures.Possible failure reasons are:
- dflook/terraform-validate: validate-failed
- dflook/terraform-fmt-check: check-failed
- dflook/terraform-check: changes-to-apply
- dflook/terraform-apply: apply-failed, plan-changed
- dflook/terraform-destroy: destroy-failed
- dflook/terraform-destroy-workspace: destroy-failed
Fixed
- dflook/terraform-validate was sometimes unable to create detailed check failures.
v1.14.0
All the terraform actions in this repository are released as one.
Use the actions as part of a GitHub Actions workflow, e.g:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dflook/[email protected]
with:
path: my-terraform-config
You can specify an action version as:
@v1.14.0
to use exactly this release@v1.14
to use the latest patch release for this specific minor version@v1
to use the latest patch release for this specific major version
Changes
Added
- Support for self-hosted GitHub Enterprise deployments. Thanks f0rkz!
Changed
- The
path
input variable is now optional, defaulting to the Action workspace. - Uninteresting workflow log output is now grouped and collapsed by default.
Fixed
- Applying PR approved plans where the plan comment is not within the first 30 comments.