Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host pull requests #32

Open
brokenpylons opened this issue Aug 10, 2024 · 1 comment
Open

Host pull requests #32

brokenpylons opened this issue Aug 10, 2024 · 1 comment

Comments

@brokenpylons
Copy link
Member

brokenpylons commented Aug 10, 2024

It would be nice if the pull requests on the development repos were deployed as well.

  1. The pull requests need to be fetched from GitHub API with the branch info and stored as JSON.
  2. The JSON is read in nix, for each pull request the repo is fetched followed by getFlake extracting the NixOS module.
  3. Each NixOS module is deployed to a separate systemd-nspawn container, link. The package must be built with --base-href as /dev/branch_name, link, so it needs to be an option you override in the NixOS module and pacakge.
  4. Add a nginx service which will forward the /dev/branch_name to the container.
  5. Forward the /dev/* on the gateway.
  6. Add an action to the development repo which will trigger a refresh of the JSON here and deploy.
@brokenpylons
Copy link
Member Author

The same set of options will need to work for all imported modules. They don't change that much so that shouldn't be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant