From ea1a78a41d3934cb257abb1686e4c271e4cb5cdd Mon Sep 17 00:00:00 2001 From: Lucas Winther Date: Fri, 18 Sep 2026 08:53:31 +0200 Subject: [PATCH] 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. --- .gitea/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8c4c48d..8c9809d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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