Files
hvm-docs/.gitea/workflows
claudeandClaude Opus 4.8 10cb75e461 fix(ci): resolve image name from $GITHUB_REPOSITORY, not repository.name
The weekly cron build failed at "Build & push":
  invalid tag "192.168.0.2:1234/justin/:2026.08.03": invalid reference format

github.event.repository.name is EMPTY on schedule events in Gitea (only
workflow_dispatch populates the event payload), so the image tag collapsed
to ".../justin/:<tag>" → invalid → build failed. That's why manual dispatch
refreshes passed while every weekly cron run failed — and since scrape →
index → commit all run before the build, the corpus kept updating on main
each week but the image never shipped.

Fix (mirrors morpheus-docs PR #7):
  - Add a "Resolve repo identity" step deriving owner/name from
    $GITHUB_REPOSITORY (set on ALL event types).
  - Repoint all 7 refs per file (image name, 2 OCI labels, package-link
    OWNER/PKG, prune --owner/--package) to steps.repo.outputs.{owner,name}.
  - Drop the now-unused IMAGE env.
  - Same fix applied to image-only.yml (dispatch-only, so not failing today,
    but the same latent footgun).

Verified: YAML valid; no github.event.repository.name template refs remain.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MNQRS6F7N9Uwh1SMn3xz2g
2026-08-06 11:00:38 -04:00
..