Publish the image on version tags and test what is delivered
A v* tag now builds, tries and publishes the image: the version must be the one of Directory.Build.props, latest only moves forward and the registry token is in one step, given to docker on its input. The same script works by hand. The image says its version and commit, and its health check also covers the engine loop and the live prices. The Unraid template is final: a test compares it with appendix E and with the variables the loader really reads, and another reads the workflow. refs #70 refs #71 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4d92a39fef
commit
3cd214ae78
16 files changed
+859
-27
No files matched your search
@@ -147,9 +147,18 @@ internal sealed record SystemView(
|
||||
? new SystemPart("Prezzi di mercato", "aggiornati " + Ago(now - at), now - at > TimeSpan.FromMinutes(5) ? PartState.Warn : PartState.Ok)
|
||||
: new SystemPart("Prezzi di mercato", "in attesa dei primi prezzi", PartState.Off));
|
||||
|
||||
// News arrive with phase 7 (SPEC 10).
|
||||
parts.Add(new SystemPart("Lettura delle notizie", "non ancora attiva", PartState.Off));
|
||||
tiles.Add(new SystemPart("Notizie", "non ancora attive", PartState.Off));
|
||||
// The news sources read every two minutes (SPEC 4.4): the ones the user left on, and when one last answered.
|
||||
var read = market is null || market.Offline ? [] : (await market.News.Store.ListSourcesAsync(cancellationToken).ConfigureAwait(false)).Where(s => s.Enabled).ToList();
|
||||
var heard = read.Max(s => s.LastOkAt);
|
||||
var (newsText, newsState) = (read.Count, heard) switch
|
||||
{
|
||||
(0, _) => ("spenta", PartState.Off),
|
||||
(_, null) => ("in attesa della prima lettura", PartState.Off),
|
||||
(_, { } last) when now - last > TimeSpan.FromMinutes(30) => ("le fonti non rispondono, ultima lettura " + When(last, now, zone) + ": riprovo da solo", PartState.Warn),
|
||||
(_, { } last) => ($"{read.Count} fonti, ultima lettura {When(last, now, zone)}", PartState.Ok),
|
||||
};
|
||||
parts.Add(new SystemPart("Lettura delle notizie", newsText, newsState));
|
||||
tiles.Add(new SystemPart("Notizie", heard is { } h ? "lette " + When(h, now, zone) : newsText, newsState));
|
||||
|
||||
// The database: engine, size, last backup.
|
||||
var engine = services.Db.Engine == DbEngine.Postgres ? "PostgreSQL" : "SQLite";
|
||||
|
||||
Reference in new issue
Block a user