-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ env: | |
TF_CLOUD_ORGANIZATION: ${{ vars.TF_CLOUD_ORGANIZATION }} | ||
TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }} | ||
TF_WORKSPACE: ${{ vars.TF_WORKSPACE }} | ||
CONFIG_DIRECTORY: "infra/" | ||
CONFIG_DIRECTORY: "./infra" | ||
## Additional env variables | ||
# TF_LOG: DEBUG ## Helpful for troubleshooting | ||
# TF_MAX_TIMEOUT: "30m" ## If you wish to override the default "1h" | ||
|
@@ -70,20 +70,18 @@ jobs: | |
|
||
- uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
id: upload | ||
working-directory: ${{ env.CONFIG_DIRECTORY }} | ||
with: | ||
workspace: ${{ env.TF_WORKSPACE }} | ||
directory: ${{ env.CONFIG_DIRECTORY }} | ||
|
||
- uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
id: create-run | ||
working-directory: ${{ env.CONFIG_DIRECTORY }} | ||
with: | ||
workspace: ${{ env.TF_WORKSPACE }} | ||
configuration_version: ${{ steps.upload.outputs.configuration_version_id }} | ||
|
||
- uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
id: apply | ||
working-directory: ${{ env.CONFIG_DIRECTORY }} | ||
if: ${{ fromJSON(steps.create-run.outputs.payload).data.attributes.actions.IsConfirmable }} | ||
with: | ||
run: ${{ steps.create-run.outputs.run_id }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ env: | |
TF_CLOUD_ORGANIZATION: ${{ vars.TF_CLOUD_ORGANIZATION }} | ||
TF_API_TOKEN: ${{ secrets.TF_API_TOKEN }} | ||
TF_WORKSPACE: ${{ vars.TF_WORKSPACE }} | ||
CONFIG_DIRECTORY: "infra/" | ||
CONFIG_DIRECTORY: "./infra" | ||
## Additional env variables | ||
# TF_LOG: DEBUG ## Helpful for troubleshooting | ||
# TF_MAX_TIMEOUT: "30m" ## If you wish to override the default "1h" | ||
|
@@ -71,14 +71,13 @@ jobs: | |
|
||
- uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
id: upload | ||
working-directory: ${{ env.CONFIG_DIRECTORY }} | ||
with: | ||
workspace: ${{ env.TF_WORKSPACE }} | ||
directory: ${{ env.CONFIG_DIRECTORY }} | ||
speculative: true | ||
|
||
- uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
id: run | ||
working-directory: ${{ env.CONFIG_DIRECTORY }} | ||
## run may fail, if so continue to output PR comment | ||
## step.terraform-cloud-check-run-status will fail job after pr comment is created/updated. | ||
continue-on-error: true | ||
|
@@ -90,7 +89,6 @@ jobs: | |
|
||
- uses: hashicorp/tfc-workflows-github/actions/[email protected] | ||
id: plan-output | ||
working-directory: ${{ env.CONFIG_DIRECTORY }} | ||
with: | ||
plan: ${{ steps.run.outputs.plan_id }} | ||
|
||
|