fix: persist OG image cache outside act runner workspace
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m51s

The cache was written to .cache/og/ relative to the workspace, which is
under /usr/local/git/.cache/act/<unique-hash>/hostexecutor/ — a new path
per run, so every build regenerated all images from scratch.

OG_CACHE_DIR env var now controls the cache path (resolved to an absolute
path). CI sets it to /usr/local/git/.cache/og, which survives between runs.
Locally it still defaults to .cache/og inside the project dir.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-04-01 10:00:46 +02:00
parent 06d8cab329
commit 93972aef35
4 changed files with 24 additions and 22 deletions

View File

@@ -125,6 +125,7 @@ jobs:
GITEA_URL: https://gitea.giersig.eu
GITEA_INTERNAL_URL: http://127.0.0.1:3000
GITEA_ORG: giersig.eu
OG_CACHE_DIR: /usr/local/git/.cache/og
- name: Deploy via rsync
run: |