-
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.
Migrate to self-hosted backend (#21)
- Loading branch information
Showing
5 changed files
with
67 additions
and
38 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,31 +1,32 @@ | ||
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.9.3" | ||
|
||
TF_HTTP_PASSWORD: ${{ github.token }} | ||
TF_IN_AUTOMATION: "true" | ||
TF_CLI_ARGS: "-input=false" | ||
TF_LOG: "debug" | ||
TF_CLI_ARGS: -input=false | ||
|
||
NETBOX_API_TOKEN: ${{ secrets.NETBOX_API_TOKEN }} | ||
PM_API_TOKEN_ID: ${{ secrets.PM_API_TOKEN_ID }} | ||
PM_API_TOKEN_SECRET: ${{ secrets.PM_API_TOKEN_SECRET }} | ||
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,6 +1,7 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:recommended" | ||
"config:recommended", | ||
"regexManagers:githubActionsVersions" | ||
] | ||
} | ||
} |
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/supernodes-v2@dev" | ||
address = "https://ffddorf-terraform-backend.fly.dev/state/supernodes-v2/dev" | ||
lock_address = "https://ffddorf-terraform-backend.fly.dev/state/supernodes-v2/dev" | ||
unlock_address = "https://ffddorf-terraform-backend.fly.dev/state/supernodes-v2/dev" | ||
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