ci: restore refresh bookkeeping in container image job

Restore snapshots/*.state.json in the image job before docker build so lastConfirmedAt is preserved in container builds.
This commit is contained in:
Lucas Winther
2026-09-18 08:55:10 +02:00
parent 6537754749
commit ea1a78a41d
+9 -1
View File
@@ -145,9 +145,17 @@ jobs:
# needs: on Gitea the registry does not accept the Actions token at all,
# so `packages: write` on it authorises nothing. See the login step.
packages: write
steps:
- uses: https://github.com/actions/checkout@v4
# Restore refresh bookkeeping before docker build so snapshots/*.state.json
# is copied into the build context and lastConfirmedAt is preserved.
- name: Restore refresh bookkeeping
uses: https://github.com/actions/cache/restore@v4
with:
path: snapshots/*.state.json
key: refresh-state-
restore-keys: refresh-state-
- uses: https://github.com/docker/setup-buildx-action@v3
- name: Lowercase image name