The runner resolves actions from git.app.ygg, where Swatinem/rust-cache
doesn't exist, so run #46 failed before checkout. Cache the registry
index, crate archives and git db instead, never target/, under a new
cargo-v2- key so the old target/-laden caches aren't restored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cargo- restore key carried every old artifact into the next save,
so the cache reached 1.2 GB and run #40 filled the shared runner's
disk. rust-cache keeps compiled dependencies only and prunes stale
files before saving.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Renovate only runs at 03:00 UTC, so a release waited up to a day for
its deploy PR. Dispatch renovate.yml right after the image is pushed.
It needs DEPLOYMENTS_DISPATCH_TOKEN (the job token can't dispatch in
another repo); when that is missing or the call fails, it warns and
the release still succeeds, since the image is already pushed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Production now runs from ygg/deployments, so a deploy from here would write
over it. Renovate opens a PR there for the new version, and merging it deploys.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The integrated stack is gone: deploy/compose.yml is just the server and
its Postgres, published on 11901 behind the existing nginx as
tern-api.mtps.pl, and this repo's release deploys it after pushing the
image. The webapp deploys separately from tern-web.
CREDENTIAL_KEY may now be 64 hex digits as well as base64, and a wrong
length says how to generate a right one. The database password reaches
the server as PGPASSWORD rather than inside DATABASE_URL, so it needs
no URL-escaping.
CORS now names Authorization and Content-Type instead of `*`: browsers
don't let the wildcard cover Authorization, so every signed-in request
from the webapp's own origin would have been refused. A route test
checks the preflight.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "Show image" step's run line was a plain YAML scalar containing
": ", which Gitea's parser rejects, so v0.8.1's release never ran. It's
a block scalar now, and CI parses every workflow file so a broken
release.yml fails on master before anything is tagged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the hand-written login/build/push/logout steps with
ygg/actions/push-image@v2. Tags stay the same (X.Y.Z and latest, same
image name); it adds OCI source/revision/created/version labels and
logs in through a temporary DOCKER_CONFIG, so the registry token never
touches the shared runner's ~/.docker. The job now exposes the version
and digest as outputs, ready for a deploy job.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The v0.2.0 release log was 17k lines, ~12k of which were BuildKit's
animated progress display repainting itself with cursor-movement
escapes. --progress=plain emits one line per event instead.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A single runner serves all three repos, so superseded pushes queueing up
full builds is a real cost. Releases are left uncovered deliberately:
cancelling a publish halfway is worse than running it twice.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Match the setup already working on that runner: setup-* actions to
provision toolchains rather than host-installed tooling, and the
automatic GITHUB_TOKEN. Registry push keeps a dedicated REGISTRY_TOKEN,
since the automatic token's scope doesn't reliably cover packages.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Flags were stored via Debug formatting of async-imap's Flag enum, which
produced Rust-internal spellings ("Seen", "Custom(\"$Junk\")") that don't
round-trip back through Flag::from and aren't what the schema documents.
Map to canonical wire spelling (\Seen, $Junk) before the webapp starts
depending on it, with tests pinning the format.
Adds Gitea Actions CI/release workflows, an nginx rate-limiting config
for the §7 gap, and a shared release-process doc. Records the decision
not to reconcile server-side flag changes or deletions, with the
conditions that should trigger revisiting it.
Also applies rustfmt and clears clippy, so CI passes from the first run.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>