fix(ci): resolve image tag via Gitea API instead of artifact #42

Merged
kacerr merged 1 commits from fix/gitops-tag-via-api into main 2026-06-12 19:59:41 +02:00
Owner

Problem

upload-artifact@v4 / download-artifact@v4 are not supported on Gitea (GHES error). v3 has no cross-workflow artifact download, so the artifact approach is a dead end.

Fix

  • Revert build.yaml: remove the artifact upload step (back to its original state — no changes to the build logic).
  • gitops-update.yaml: on workflow_run trigger, call the Gitea API to find the tag whose commit.sha matches github.event.workflow_run.head_sha:
    GET /api/v1/repos/{repo}/tags?limit=50
    jq '.[] | select(.commit.sha == $sha) | .name'
    
    Uses GITEA_TOKEN already present in the job. Add jq to the apt install step.
## Problem `upload-artifact@v4` / `download-artifact@v4` are not supported on Gitea (GHES error). v3 has no cross-workflow artifact download, so the artifact approach is a dead end. ## Fix - **Revert `build.yaml`**: remove the artifact upload step (back to its original state — no changes to the build logic). - **`gitops-update.yaml`**: on `workflow_run` trigger, call the Gitea API to find the tag whose `commit.sha` matches `github.event.workflow_run.head_sha`: ``` GET /api/v1/repos/{repo}/tags?limit=50 jq '.[] | select(.commit.sha == $sha) | .name' ``` Uses `GITEA_TOKEN` already present in the job. Add `jq` to the apt install step.
kacerr added 1 commit 2026-06-12 19:59:32 +02:00
fix(ci): resolve image tag via Gitea API instead of artifact
All checks were successful
Deploy to K8s / deploy (push) Successful in 9s
6d7dbfa624
upload/download-artifact@v4 is not supported on Gitea (GHES). Replace
with a direct Gitea API call in gitops-update: look up the tag name
whose commit SHA matches workflow_run.head_sha. Reverts the artifact
upload from build.yaml; no changes to build.yaml logic.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
kacerr merged commit 96c14f0b22 into main 2026-06-12 19:59:41 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kacerr/fuj-management#42