Update deployment docs and media library UI

This commit is contained in:
ShukeBta
2026-05-28 17:32:55 +08:00
parent 68a5a1e3c0
commit b5f1f1954e
33 changed files with 1667 additions and 874 deletions
+33
View File
@@ -0,0 +1,33 @@
param(
[string]$Image = "ghcr.io/shukebta/mediastation-go",
[string]$Tag = "latest",
[string]$Platforms = "linux/amd64,linux/arm64",
[switch]$Load
)
$ErrorActionPreference = "Stop"
$Builder = "mediastation-builder"
docker buildx inspect $Builder *> $null
if ($LASTEXITCODE -ne 0) {
docker buildx create --name $Builder --use | Out-Null
} else {
docker buildx use $Builder | Out-Null
}
$args = @(
"buildx", "build",
"--platform", $Platforms,
"-t", "$Image`:$Tag"
)
if ($Load) {
$args += "--load"
} else {
$args += "--push"
}
$args += "."
Write-Host "Building $Image`:$Tag for $Platforms"
docker @args