Add Windows PowerShell dev workflow
build-push / docker (push) Successful in 4m7s

This commit is contained in:
GHStaK
2026-03-17 15:47:01 +09:00
parent 75f1bb360c
commit 139e8f8781
8 changed files with 606 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
param(
[string]$AppAddr = "127.0.0.1:8080",
[string]$SqlitePath = "",
[string]$DownloadsDir = "",
[string]$SearxUrl = "http://127.0.0.1:18080"
)
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
. (Join-Path $PSScriptRoot "dev-tools.ps1")
Use-LocalTooling
$repoRoot = Get-RepoRoot
if (-not $SqlitePath) {
$SqlitePath = Join-Path $repoRoot "db\media.dev.db"
}
if (-not $DownloadsDir) {
$DownloadsDir = Join-Path $repoRoot "downloads"
}
$envMap = Get-AppEnvironment -WorkspaceRoot $repoRoot -DownloadsDir $DownloadsDir -SqlitePath $SqlitePath -AppAddr $AppAddr -SearxUrl $SearxUrl
foreach ($entry in $envMap.GetEnumerator()) {
Set-Item -Path ("Env:" + $entry.Key) -Value $entry.Value
}
Write-Step "백엔드 실행"
Invoke-CheckedCommand -FilePath "go" -Arguments @("run", "./backend")