chore: move to export pg connection string
This commit is contained in:
2
.github/workflows/infra-build.yml
vendored
2
.github/workflows/infra-build.yml
vendored
@@ -28,7 +28,6 @@ jobs:
|
||||
proxmox_api_token_secret = "${{ secrets.PVE_API_TOKEN_SECRET }}"
|
||||
ssh_key = "${{ secrets.SSH_PRIVATE_KEY }}"
|
||||
passphrase = "${{ secrets.SSH_PASSPHRASE }}"
|
||||
PG_CONN_STR = "${{ secrets.PG_CONN_STR }}"
|
||||
EOF
|
||||
|
||||
- name: Setup Opentofu
|
||||
@@ -46,6 +45,7 @@ jobs:
|
||||
- name: Opentofu Plan
|
||||
id: plan
|
||||
run: |
|
||||
export PG_CONN_STR="${{ secrets.PG_CONN_STR }}"
|
||||
tofu plan -out=tfplan -detailed-exitcode
|
||||
|
||||
- name: Opentofu Apply
|
||||
|
@@ -11,9 +11,7 @@ terraform {
|
||||
}
|
||||
}
|
||||
|
||||
backend "pg" {
|
||||
conn_str = var.PG_CONN_STR
|
||||
}
|
||||
backend "pg" {}
|
||||
encryption {
|
||||
key_provider "pbkdf2" "mykey" {
|
||||
passphrase = var.passphrase
|
||||
@@ -66,11 +64,6 @@ variable "passphrase" {
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "PG_CONN_STR" {
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
provider "proxmox" {
|
||||
pm_api_url = var.proxmox_api_url
|
||||
pm_user = "root@pam"
|
||||
|
Reference in New Issue
Block a user