feat(ci): gitops image-update PR workflow for home-kubernetes #39
Reference in New Issue
Block a user
Delete Branch "feat/gitops-pr-action"
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?
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