Fix CI: Forgejo Actions schema validation error #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The CI workflow (
build-and-push) failed instantly on every push (runs 121–122).Root cause:
${{ gitea.sha }}in the workflow file. Forgejo Actions aliases thegithubcontext togitea/forgejo, but the expression parser only accepts${{ github.* }}—gitea.shafails YAML schema validation ("Unknown Variable Access gitea"), and the job never starts.Fix (commit
4785db0)gitea.sha→github.shagcr.io/kaniko-project/executor:debug), which builds daemon-less inside a plain container — the runner needs no Docker/buildkit capabilityactions/checkout@v4(needsnode, not present in kaniko image); kaniko clones the repo itself via--context=git://.../kaniko/.docker/config.jsonfromFORGEJO_REGISTRY_USER/PASSWORDrepo secretsResult
Run 124 success: build-and-push + deploy both green,
telegram-agentrunning in cluster.