Refresh deploy/ and bin/ from the boilerplate at 09e144d (the release split between the distro and Windows, wsl-setup, the server config, USER 1000, python:3.15-slim) with roledesk's facts put back: no frontend stage, desk, plugins and seed copied, the extras passkeys, embeddings and llm, roles as the table the backup and the importer require, bin/pull.sh and bin/worker.sh with their profile commands, and Install Server.md and Install WSL.md as copies in place of the five old deployment docs

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-10-27 11:11:19 +01:00
1 parent 83e965dfeb
commit a1f281a23a
40 files changed
+2226 -1287

No files matched your search

+19 -35
View File
@@ -1,36 +1,20 @@
<#
.SYNOPSIS
Publish the already-built production image to the registry.
.DESCRIPTION
Never rebuilds. If the push fails, fix access or connectivity and run this
again; the image is already on disk. `docker login` first, with a token
that has package-write access.
#>
[CmdletBinding()]
param()
Set-StrictMode -Version Latest
# Step 3, on Windows: push the image step 2 built, <IMAGE>:<sha> and :latest,
# with wslc. Never rebuilds: after a failed push, fix the login and run it again.
$ErrorActionPreference = 'Stop'
. "$PSScriptRoot/_common.ps1"
$Image = Setting IMAGE -Required
$Branch = Setting BRANCH 'production'
Push-Location $root
try {
$commit = git rev-parse --verify "$Branch^{commit}"
Assert-Ok 'resolve production commit'
$sha = (git rev-parse --short $commit.Trim()).Trim()
Assert-Ok 'resolve image tag'
$tagged = "${Image}:${sha}"
$latest = "${Image}:latest"
docker image inspect $tagged --format '{{.Id}}' | Out-Null
Assert-Ok "find local $tagged (run step 2 first)"
# latest must name this candidate, even if another image was built since.
docker tag $tagged $latest
Assert-Ok 'tag latest image'
docker push $tagged
Assert-Ok 'push commit image'
docker push $latest
Assert-Ok 'push latest image'
Write-Host "Published $tagged and $latest"
} finally { Pop-Location }
. "$PSScriptRoot\_common.ps1"
Assert-Wslc
$sha = Get-ReleaseSha
wslc image inspect "${Image}:$sha" | Out-Null
if ($LASTEXITCODE -ne 0) { throw "no local ${Image}:$sha - run step 2 first" }
# latest must name this candidate, even if another image was built since.
wslc tag "${Image}:$sha" "${Image}:latest"
if ($LASTEXITCODE -ne 0) { throw "wslc tag failed (exit $LASTEXITCODE)" }
foreach ($tag in $sha, 'latest') {
Write-Host "== push ${Image}:$tag" -ForegroundColor Cyan
wslc push "${Image}:$tag"
if ($LASTEXITCODE -ne 0) {
Write-Host "If the push was refused: wslc login $(($Image -split '/')[0]) -u <user>, with a token that has package-write access" -ForegroundColor Yellow
throw "wslc push ${Image}:$tag failed (exit $LASTEXITCODE)"
}
}
Write-Host "Published ${Image}:$sha and ${Image}:latest"