1f2e6699

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Add NixCI deployment to Fly.io (#77)

Configure NixCI to run the Fly deployment package for the default branch.
The deploy package builds the app image with Nix, pushes it to Fly's registry with skopeo, and deploys the pushed image with flyctl so CI does not need Docker or a Fly remote builder.

Testing:
- nix fmt flake.nix nix-ci.nix
- nix flake check
- ./dev-scripts/git-hooks/pre-commit
- nix build .#deploy-to-fly
- nix eval --file nix-ci.nix deploy.fly.package

Reviewed-on: https://codeberg.org/mtlynch/grosiree/pulls/77

Suite timing

Time to Start Worker time Duration Time to finish
Config 2s 7s 7s 10s
Eval 5s 1m29s 1m29s 1m35s
Build 27s 4m26s 52s 1m20s
Deploy 1m52s 1m50s 1m50s 3m43s
Suite 2s 7m55s 3m40s 3m43s

Timeline

0s20s40s1m1m20s2m2m20s2m40s3m3m20s3m40s