github.event.workflow_run.head_branch is not populated for tag pushes in Gitea Actions (it's empty), so the image resolved to ...:⁻go with no version.
Fix
build.yaml — at the end of the build-go job, write the full image reference to /tmp/go-image-tag.txt and upload it as a go-image-tag artifact (1-day retention).
gitops-update.yaml — when triggered by workflow_run, download that artifact via actions/download-artifact@v4 with run-id: ${{ github.event.workflow_run.id }}, then read the image from go-image-tag.txt. The workflow_dispatch path is unchanged.
## Problem
`github.event.workflow_run.head_branch` is not populated for tag pushes in Gitea Actions (it's empty), so the image resolved to `...:⁻go` with no version.
## Fix
**`build.yaml`** — at the end of the `build-go` job, write the full image reference to `/tmp/go-image-tag.txt` and upload it as a `go-image-tag` artifact (1-day retention).
**`gitops-update.yaml`** — when triggered by `workflow_run`, download that artifact via `actions/download-artifact@v4` with `run-id: ${{ github.event.workflow_run.id }}`, then read the image from `go-image-tag.txt`. The `workflow_dispatch` path is unchanged.
github.event.workflow_run.head_branch is not populated for tag pushes
in Gitea Actions, causing the image tag to resolve to empty (-go suffix
with no version). Fix: build-go uploads the full image reference as a
one-line artifact; gitops-update downloads it via download-artifact@v4
with run-id from the workflow_run event.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
kacerr
merged commit c00111cff1 into main2026-06-12 19:53:20 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
github.event.workflow_run.head_branchis not populated for tag pushes in Gitea Actions (it's empty), so the image resolved to...:⁻gowith no version.Fix
build.yaml— at the end of thebuild-gojob, write the full image reference to/tmp/go-image-tag.txtand upload it as ago-image-tagartifact (1-day retention).gitops-update.yaml— when triggered byworkflow_run, download that artifact viaactions/download-artifact@v4withrun-id: ${{ github.event.workflow_run.id }}, then read the image fromgo-image-tag.txt. Theworkflow_dispatchpath is unchanged.