Deploy to k8s with KUBECONFIG_CI #74

Merged
andrew merged 3 commits from forgejo-k8s-deploy into main 2026-11-29 20:45:57 -05:00
Owner

Summary

  • Replace the Watchtower deploy step with kubectl -n budget rollout restart and rollout status, authenticating with the shared KUBECONFIG_CI secret.
  • Move workflows from .gitea/workflows to .forgejo/workflows and switch gitea.sha to forgejo.sha; Forgejo runner v13 removed the gitea.* context.
  • Qualify action references with https://github.com/ and add a non-canceling deploy concurrency group.
  • Move the test workflow too and qualify actions/cache.

Before merge

Add the KUBECONFIG_CI repository secret (shared forgejo-deployer kubeconfig). This supersedes the old KUBECONFIG_BUDGET secret and the deploy-k8s branch.

## Summary - Replace the Watchtower deploy step with `kubectl -n budget rollout restart` and `rollout status`, authenticating with the shared `KUBECONFIG_CI` secret. - Move workflows from `.gitea/workflows` to `.forgejo/workflows` and switch `gitea.sha` to `forgejo.sha`; Forgejo runner v13 removed the `gitea.*` context. - Qualify action references with `https://github.com/` and add a non-canceling deploy concurrency group. - Move the test workflow too and qualify `actions/cache`. ## Before merge Add the `KUBECONFIG_CI` repository secret (shared `forgejo-deployer` kubeconfig). This supersedes the old `KUBECONFIG_BUDGET` secret and the `deploy-k8s` branch.
Deploy to k8s with the shared KUBECONFIG_CI secret
Some checks failed
Ruby CI / test (pull_request) Failing after 4s
268bf309d1
Replace the Watchtower deploy step with kubectl rollout restart and status against the budget namespace, using the shared KUBECONFIG_CI repository secret.

Move workflows from .gitea to .forgejo and switch the tag reference to the forgejo context, which Forgejo runner v13 requires.
Update Ruby to 4.0.10 for the new runner
Some checks failed
Ruby CI / test (pull_request) Failing after 1m12s
12aecfb10e
The Forgejo runner's act-latest image is Ubuntu 26.04, and ruby-builder only publishes prebuilt Ruby 4.x patches for 26.04 starting with 4.0.5. Update the pinned Ruby patch and the matching lockfile metadata.

Bump setup-ruby to v1.345.0, the first release that recognizes Ubuntu 26.04 as a supported platform instead of treating it as a self-hosted runner without a tool cache.
Bump Brakeman to 8.1.1
All checks were successful
Ruby CI / test (pull_request) Successful in 1m16s
0f11400a48
bin/brakeman prepends --ensure-latest, so the security job fails whenever the lockfile pins an older Brakeman. Update it to the current release.
andrew merged commit db10c58834 into main 2026-11-29 20:45:57 -05:00
andrew deleted branch forgejo-k8s-deploy 2026-11-29 20:45:57 -05:00
andrew referenced this pull request from a commit 2026-11-29 20:45:57 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
andrew/budget!74
No description provided.