fix(catalog): normalize helper asset and add V Rising template
CI / validate (push) Failing after 8m0s
CI / validate (push) Failing after 8m0s
This commit is contained in:
@@ -0,0 +1 @@
|
||||
*.sh text eol=lf
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user