fix(catalog): normalize helper asset and add V Rising template
CI / validate (push) Failing after 8m0s

This commit is contained in:
2026-08-17 00:28:32 +02:00
parent 62a5fdb1f7
commit 515008dfa1
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
*.sh text eol=lf
+1 -1
View File
@@ -41,7 +41,7 @@ container:
assets:
- source: assets/helper.sh
destination: /pal/helper.sh
sha256: b9f30aba43886644399c7a6d40c03fec6a9f453ba6f12a881eccc1bc3de7a1d3
sha256: 52e58fe4e22654d0d312fe2bb6195db61dad5ffce78e0440a951d33d20f2c36f
read_only: true
stop_timeout_seconds: 120
ports:
+1 -1
View File
@@ -132,7 +132,7 @@ func (r *Repository) Replace(ctx context.Context, snapshots []catalog.Snapshot)
}
_, err = tx.ExecContext(ctx, `INSERT INTO template_versions(template_id, version, schema_version, canonical_yaml, digest, game_id, game_name, description, image, created_at)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT(template_id, version) DO UPDATE SET schema_version=excluded.schema_version, canonical_yaml=excluded.canonical_yaml, digest=excluded.digest, game_id=excluded.game_id, game_name=excluded.game_name, description=excluded.description, image=excluded.image`, snapshot.Template.ID, snapshot.Template.Version, snapshot.Template.SchemaVersion, snapshot.CanonicalYAML, snapshot.Digest, snapshot.Template.Game.ID, snapshot.Template.Game.Name, snapshot.Template.Game.Description, snapshot.Template.Game.Image, now)
ON CONFLICT(template_id, version) DO UPDATE SET schema_version=excluded.schema_version, canonical_yaml=excluded.canonical_yaml, digest=excluded.digest, game_id=excluded.game_id, game_name=excluded.game_name, description=excluded.description, image=excluded.image`, snapshot.Template.ID, snapshot.Template.Version, snapshot.Template.SchemaVersion, snapshot.CanonicalYAML, snapshot.Digest, snapshot.Template.Game.ID, snapshot.Template.Game.Name, snapshot.Template.Game.Description, snapshot.Template.Game.Artwork.Image, now)
if err != nil {
return fmt.Errorf("upsert template snapshot: %w", err)
}