chore: update pg connection

This commit is contained in:
2025-09-27 13:34:45 +10:00
parent 3d7a1347a8
commit 6c56a9cc9d
2 changed files with 3 additions and 5 deletions

View File

@@ -9,10 +9,7 @@ jobs:
opentofu: opentofu:
name: Opentofu Build name: Opentofu Build
runs-on: self-hosted runs-on: self-hosted
env:
PG_CONN_STR: ${{ secrets.PG_CONN_STR }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v5 uses: actions/checkout@v5
@@ -29,6 +26,7 @@ jobs:
proxmox_api_token_secret = "${{ secrets.PVE_API_TOKEN_SECRET }}" proxmox_api_token_secret = "${{ secrets.PVE_API_TOKEN_SECRET }}"
ssh_key = "${{ secrets.SSH_PRIVATE_KEY }}" ssh_key = "${{ secrets.SSH_PRIVATE_KEY }}"
passphrase = "${{ secrets.SSH_PASSPHRASE }}" passphrase = "${{ secrets.SSH_PASSPHRASE }}"
PG_CONN_STR = ${{ secrets.PG_CONN_STR }}
EOF EOF
- name: Setup Opentofu - name: Setup Opentofu

View File

@@ -12,7 +12,7 @@ terraform {
} }
backend "pg" { backend "pg" {
conn_str = env.PG_CONN_STR conn_str = var.PG_CONN_STR
} }
encryption { encryption {
key_provider "pbkdf2" "mykey" { key_provider "pbkdf2" "mykey" {