Adds .gitea/workflows/gitops-update.yaml — a new CI workflow that automatically opens a pull request against kacerr/home-kubernetes whenever the Go image of this app is successfully built and pushed.
How it works
Auto-trigger: workflow_run on Build and Push (completed + success) — fires on every tag push.
Manual trigger: workflow_dispatch with tag input, optional dry_run toggle, and optional uh_cli_version override.
Uses uh-cli gitops deployment update to locate the fuj-management Deployment (namespace fuj) in gitops/home-kubernetes, bump its image to the new <tag>-go tag, and open the PR.
tea and uh-cli are downloaded fresh from their Gitea releases on each run (hermetic, no custom runner image).
Prerequisites before merging / using
Create GITOPS_TOKEN secret in this repo — a Gitea personal access token for kacerr with write + pull-request access to kacerr/home-kubernetes.
Verify uh-cli v0.1.0 binaryuh-cli-v0.1.0-linux-amd64 is attached to that Gitea release; if not, publish the release first.
Confirm manifest path: --git-path gitops/home-kubernetes must contain the fuj-management Deployment. Use dry-run dispatch first to test.
Testing plan
workflow_dispatch with dry_run=true, tag=0.37 → confirm diff logged, no PR opened.
workflow_dispatch with dry_run=false → confirm PR opens in home-kubernetes.
Push new git tag → Build and Push completes → this workflow auto-fires.
## What
Adds `.gitea/workflows/gitops-update.yaml` — a new CI workflow that automatically opens a pull request against `kacerr/home-kubernetes` whenever the Go image of this app is successfully built and pushed.
## How it works
- **Auto-trigger**: `workflow_run` on `Build and Push` (completed + success) — fires on every tag push.
- **Manual trigger**: `workflow_dispatch` with `tag` input, optional `dry_run` toggle, and optional `uh_cli_version` override.
- Uses `uh-cli gitops deployment update` to locate the `fuj-management` Deployment (namespace `fuj`) in `gitops/home-kubernetes`, bump its image to the new `<tag>-go` tag, and open the PR.
- `tea` and `uh-cli` are downloaded fresh from their Gitea releases on each run (hermetic, no custom runner image).
## Prerequisites before merging / using
1. **Create `GITOPS_TOKEN` secret** in this repo — a Gitea personal access token for `kacerr` with **write + pull-request** access to `kacerr/home-kubernetes`.
2. **Verify `uh-cli v0.1.0` binary** `uh-cli-v0.1.0-linux-amd64` is attached to that Gitea release; if not, publish the release first.
3. **Confirm manifest path**: `--git-path gitops/home-kubernetes` must contain the `fuj-management` Deployment. Use dry-run dispatch first to test.
## Testing plan
- [ ] `workflow_dispatch` with `dry_run=true`, `tag=0.37` → confirm diff logged, no PR opened.
- [ ] `workflow_dispatch` with `dry_run=false` → confirm PR opens in `home-kubernetes`.
- [ ] Push new git tag → `Build and Push` completes → this workflow auto-fires.
🤖 Generated with [Claude Code](https://claude.ai/claude-code)
After a successful Go image build, uh-cli opens a PR against
kacerr/home-kubernetes that bumps the fuj-management Deployment
(namespace fuj) to the newly published image tag. Supports
workflow_run auto-trigger and workflow_dispatch with dry-run option.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
kacerr
merged commit 1df1863725 into main2026-06-12 19:31:52 +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.
What
Adds
.gitea/workflows/gitops-update.yaml— a new CI workflow that automatically opens a pull request againstkacerr/home-kuberneteswhenever the Go image of this app is successfully built and pushed.How it works
workflow_runonBuild and Push(completed + success) — fires on every tag push.workflow_dispatchwithtaginput, optionaldry_runtoggle, and optionaluh_cli_versionoverride.uh-cli gitops deployment updateto locate thefuj-managementDeployment (namespacefuj) ingitops/home-kubernetes, bump its image to the new<tag>-gotag, and open the PR.teaanduh-cliare downloaded fresh from their Gitea releases on each run (hermetic, no custom runner image).Prerequisites before merging / using
GITOPS_TOKENsecret in this repo — a Gitea personal access token forkacerrwith write + pull-request access tokacerr/home-kubernetes.uh-cli v0.1.0binaryuh-cli-v0.1.0-linux-amd64is attached to that Gitea release; if not, publish the release first.--git-path gitops/home-kubernetesmust contain thefuj-managementDeployment. Use dry-run dispatch first to test.Testing plan
workflow_dispatchwithdry_run=true,tag=0.37→ confirm diff logged, no PR opened.workflow_dispatchwithdry_run=false→ confirm PR opens inhome-kubernetes.Build and Pushcompletes → this workflow auto-fires.🤖 Generated with Claude Code