ci: trigger pipelines from Forgejo instead of Codeberg #5
No reviewers
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
feeldata/manifests!5
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/trigger-to-forgejo"
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?
Moves the PaC trigger for
feeldata2.appfrom codeberg.org to forgejo.b4mad.net, and adds the credentials it needs.Why now
ArgoCD reads
manifestsfrom Forgejo sincedac43be, but every build pipeline still pushed its image-tag commit to codeberg.org. Those commits land on a repo nobody deploys from, so dev and prod have been frozen at their current tags. CI→CD is already severed; this is half the fix.What changed
dev-infra/repository.yaml— renamed toforgejo-feeldata-app, pointed atforgejo.b4mad.net/feeldata/feeldata2.app.git_provider.type: forgejois now set explicitly. The old CR left it unset, which silently defaults togithuband worked only because the Codeberg payload happened to parse. Do not carry that omission over.secrets/forgejo-b4mad— PaCprovider.token+webhook.secret. The provider token is the existingb4mad-gitopsgitops-token, which already holdswrite:repositoryandwrite:issue— no new token was minted. PaC v0.42.2 enforces Forgejo webhook HMAC, sowebhook.secretmust match the hook onfeeldata2.app.secrets/promote-git-credentials— repointed toforgejo.b4mad.net. This secret was hand-created in the cluster on 2026-02-11 and never tracked in git; it is brought under GitOps here rather than hand-edited again.codeberg-b4madis kept deliberately as the trigger rollback path.codeberg-b4mad-packagesstays live because container images still push to the Codeberg registry — the Forgejo package registry forfeeldatais still empty.Verification
kustomize build environments/dev→ 41 objects, cleankubeseal --validate→ the live controller can decrypt both new sealsoc apply --dry-run=serverwithtype: forgejo⚠️ Merge ordering
Must land together with
feeldata2.app#ci/trigger-and-manifests-to-forgejo. The six PaC-triggered builds authenticate the manifests push with{{ git_auth_secret }}, which carries credentials for whichever forge fired the run — either change alone breaks the push.Recommended: deactivate the Codeberg org webhook first so CI is quiet, then merge both, then activate the Forgejo webhook. That avoids any window where one forge triggers and the other holds the credentials.
Merging also overwrites the live
promote-git-credentials, which is the cutover moment for the manual promote pipelines.