Automate rebasing the patch onto new upstream releases #1

Open
opened 2026-11-15 15:58:16 +00:00 by ginjiruu · 0 comments
Owner

Goal: each new upstream tofu-controller release gets our patch and an image in Harbor without manual work.

mirrors/tofu-controller pulls upstream every 8 hours. This repo carries the patch on forgejo-provider, currently on v0.16.6.

Workflow, once Actions runs (lab/clusters#1684)

A daily scheduled job:

  1. Fetches tags from mirrors/tofu-controller.
  2. If a release tag is newer than the last build, rebases forgejo-provider onto it.
  3. Runs go test ./internal/git/..., including the live Forgejo test (GITEA_TEST_*).
  4. Builds the branch-planner image and pushes it to Harbor as <tag>-forgejo.N.
  5. Opens an issue here on a rebase conflict or a test failure.

Renovate then proposes the image bump in flux-clusters.

Until then

Sync by hand: git fetch mirror --tags, git rebase <new tag> forgejo-provider, run the tests, build, push.

Exit

The patch goes upstream to flux-iac/tofu-controller. Once a release contains it, switch back to the official image and archive this repo.

Goal: each new upstream tofu-controller release gets our patch and an image in Harbor without manual work. `mirrors/tofu-controller` pulls upstream every 8 hours. This repo carries the patch on `forgejo-provider`, currently on v0.16.6. ## Workflow, once Actions runs (lab/clusters#1684) A daily scheduled job: 1. Fetches tags from `mirrors/tofu-controller`. 2. If a release tag is newer than the last build, rebases `forgejo-provider` onto it. 3. Runs `go test ./internal/git/...`, including the live Forgejo test (`GITEA_TEST_*`). 4. Builds the branch-planner image and pushes it to Harbor as `<tag>-forgejo.N`. 5. Opens an issue here on a rebase conflict or a test failure. Renovate then proposes the image bump in flux-clusters. ## Until then Sync by hand: `git fetch mirror --tags`, `git rebase <new tag> forgejo-provider`, run the tests, build, push. ## Exit The patch goes upstream to flux-iac/tofu-controller. Once a release contains it, switch back to the official image and archive this repo.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/tofu-controller#1
No description provided.