ci: move the nixpkgs auto-update from GitHub Actions to Crow CI #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Alpers-Ai-Agent/MyServers:agent/crow-auto-update"
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
Ports the daily nixpkgs auto-update from GitHub Actions to Crow CI, per the Forgejo-canonical plan (GitHub Actions are being retired as they get ported to Crow).
.crow.yaml: cron + manual pipelineupdate-nixpkgs, behavior-identical to the old workflow —nix flake update nixpkgs nixpkgs-unstable nixos-raspberrypi, commitflake.lockto main asServer Updater <server-updater@alper-celik.dev>with the sameupdate nixpkgsmessage, push to main. From there the existing flow takes over unchanged: Forgejo push-mirror → GitHub main →auto-deploy.yml..github/workflows/auto-update.yml(in the same commit, so there is no double-update window).auto-deploy.ymlandupdate-dns*.ymlstay.Pipeline choices
docker.io/nixos/nix:2.35.4(multiarch amd64+arm64, verified on the registry) —nix flake updateneeds no builds, only lockfile + fetches.labels: pool: local— the job routes to the local arm64 agent on hetzner-server-1, never the EC2 autoscaler pool (no cost for a lockfile bump).git pushfrom a normal step cannot use them. The push URL is built fromCI_REPO_CLONE_URL, so a future domain move doesn't touch the file.manualevent, gated tobranch: mainso a run from another branch cannot push that branch to main (the old workflow_dispatch equivalent, with the guard it lacked).GITHUB_TOKENequivalent for nix fetches yet — three inputs resolve a handful of api.github.com calls at 01:30, well inside the unauthenticated rate limit. If a rate-limit 403 ever shows up in the log, add agithub_tokensecret and extendNIX_CONFIGwithaccess-tokens.One-time setup (Crow UI, ci.auth.how) — needed before the first run
Alper/MyServersin Crow if not already.forgejo_token= a Forgejo PAT with push access to main (Forgejo → Settings → Applications → token, scope repo write).update-nixpkgs, schedule30 22 * * *, branchmain(same 01:30 UTC+3 cadence as the old workflow; Crow interprets the schedule in the server's timezone — if the first run lands at the wrong wall-clock time, shift the schedule accordingly).update nixpkgscommit on Forgejo main.Validation
.crow.yamlparses clean (yq); no other Crow pipeline files existed..crow.yaml, deleted.github/workflows/auto-update.yml.