-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We're now hosting an instance of https://github.com/ffddorf/terraform-backend which can be used to manage the state and helps with speculative runs.
- Loading branch information
Showing
4 changed files
with
23 additions
and
30 deletions.
There are no files selected for viewing
17 changes: 9 additions & 8 deletions
17
.github/workflows/preview.yaml → .github/workflows/tf-preview.yaml
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 |
---|---|---|
@@ -1,29 +1,30 @@ | ||
name: Speculative Run | ||
|
||
name: Terraform | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
workspace_transfer_url: | ||
description: "URL from which to download the workspace" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
plan: | ||
name: Plan | ||
name: Speculative Plan | ||
runs-on: ubuntu-22.04 | ||
env: | ||
# renovate: datasource=github-releases depName=hashicorp/terraform | ||
TERRAFORM_VERSION: "1.6.6" | ||
TF_HTTP_PASSWORD: ${{ github.token }} | ||
TF_IN_AUTOMATION: "true" | ||
TF_CLI_ARGS: "-input=false" | ||
TF_LOG: "debug" | ||
TF_CLI_ARGS: -input=false | ||
|
||
# environment variables for providers | ||
NETBOX_API_TOKEN: ${{ secrets.NETBOX_API_TOKEN }} | ||
steps: | ||
- name: Download Workspace | ||
run: | | ||
curl ${{ inputs.workspace_transfer_url }} --fail --silent | tar -xzf - | ||
curl ${{ inputs.workspace_transfer_url }} --user github_pat:${TF_HTTP_PASSWORD} --fail --silent | tar -xzf - | ||
- uses: hashicorp/setup-terraform@v3 | ||
with: | ||
terraform_version: "1.6.6" | ||
terraform_version: ${TERRAFORM_VERSION} | ||
- run: terraform init | ||
- run: terraform plan |
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
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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
terraform { | ||
backend "http" { | ||
# see https://tfstate.dev/ for instructions | ||
address = "https://api.tfstate.dev/github/v1" | ||
lock_address = "https://api.tfstate.dev/github/v1/lock" | ||
unlock_address = "https://api.tfstate.dev/github/v1/lock" | ||
lock_method = "PUT" | ||
unlock_method = "DELETE" | ||
username = "ffddorf/terraform-gre-sites@dev" | ||
address = "https://ffddorf-terraform-backend.fly.dev/state/terraform-gre-sites/default" | ||
lock_address = "https://ffddorf-terraform-backend.fly.dev/state/terraform-gre-sites/default" | ||
unlock_address = "https://ffddorf-terraform-backend.fly.dev/state/terraform-gre-sites/default" | ||
username = "github_pat" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended" | ||
"config:recommended", | ||
"regexManagers:githubActionsVersions" | ||
] | ||
} | ||
} |