Nammayatri uses Jenkins for CI. This repository contains the NixOS configuration for the master node and the macOS slave node. It uses jenkins-nix-ci under the hood.
First enter the nix shell (via direnv or nix develop
) and then run:
To deploy the master node,
deploy --remote-build -s .#nixos
NOTE: If deploying fails with rollback on NetworkManager issues, see https://github.com/serokell/deploy-rs/issues/91#issuecomment-846292218.
--auto-rollback false --magic-rollback false
To deploy the macOS slave node,
deploy --remote-build -s .#macos
For linux,
nix build .#nixosConfigurations.jenkins-nix-ci.config.system.build.toplevel
You will see something like This site can't be reached
.
sudo systemctl restart tailscaled.service