Skip to content

Commit 7e16357

Browse files
committed
ci: set ISC_USER/ISC_PASSWORD env vars, use FirebirdDatabase object for SYSDBA init
1 parent 53d4c4a commit 7e16357

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030

3131
env:
3232
GITHUB_TOKEN: ${{ github.token }}
33+
ISC_USER: SYSDBA
34+
ISC_PASSWORD: masterkey
3335

3436
steps:
3537
- uses: actions/checkout@v4
@@ -59,14 +61,13 @@ jobs:
5961
6062
- name: Configure and start Firebird
6163
run: |
62-
# Initialize SYSDBA in security database via embedded connection (no server needed)
63-
$tempDb = Join-Path $env:FB_PATH 'temp_init.fdb'
64-
New-FirebirdDatabase -Database $tempDb -Environment $env:FB_PATH
65-
"CREATE OR ALTER USER SYSDBA PASSWORD 'masterkey';" | Invoke-FirebirdIsql -Database $tempDb -Environment $env:FB_PATH
66-
Remove-Item $tempDb -Force
6764
# Configure RemoteAuxPort for Firebird events support
6865
$confPath = Join-Path $env:FB_PATH 'firebird.conf'
6966
Write-FirebirdConfiguration -Path $confPath -Configuration @{ RemoteAuxPort = 3051 }
67+
# Initialize SYSDBA via embedded connection (ISC_USER/ISC_PASSWORD env vars are set at job level)
68+
$initDb = New-FirebirdDatabase -Database (Join-Path $env:FB_PATH 'init.fdb') -Environment $env:FB_PATH
69+
"CREATE USER SYSDBA PASSWORD 'masterkey';" | Invoke-FirebirdIsql -Database $initDb -Environment $env:FB_PATH
70+
Remove-FirebirdDatabase -Database $initDb -Force
7071
# Start Firebird server
7172
Start-FirebirdInstance -Environment $env:FB_PATH | Write-Output
7273

0 commit comments

Comments
 (0)