Commit graph

40 commits

Author SHA1 Message Date
Graham Christensen cd46bde16a
Support GitHub Enterprise Server using ARC (#59)
* Test nix-installer-action on Namespace.so

It is special in that it doesn't have systemd, and it'd be great to
support Namespace.so. It is also a good test case for a variety
of self-hosted GHA runner use cases.

* Make correlation more confident

* Borrow docker as a process supervisor on Linux GHA runners without systemd

This change introduces a Docker container shim which spawns the Nix
daemon after bind mounting all the relevant paths into the container.

The image is actually completely empty, other than metadata about what
to run.

This is a cheap and cheerful way to get decent process supervision in
environments that don't bring systemd, but do have docker ... which
is most everywhere in the GHA ecosystem.

* Ignore generated files

* Run on arm64 why not

* Load a pre-built image, don't build

* Check the userInfo.username instead of an env var

* Stop double-printing output to the console

* can't rm and restart

* what

* Clean up the container at the end

* Emit the fetch line in the 'installing nix' section

* tweak output

* delete what
2023-12-04 14:17:47 -05:00
Graham Christensen 84fe9e450f
Support GitHub Enterprise Server in the github-token access token. (#58) 2023-12-01 10:23:32 -05:00
Graham Christensen 07b8bcba1b
KVM support out of the box, plus a refreshed README (#56)
* support kvm

* Refresh the readme

* Update README.md

Co-authored-by: Ana Hobden <operator@hoverbear.org>

* Update README.md

Co-authored-by: Luc Perkins <lucperkins@gmail.com>

* Update README.md

---------

Co-authored-by: Ana Hobden <operator@hoverbear.org>
Co-authored-by: Luc Perkins <lucperkins@gmail.com>
2023-11-21 19:06:06 +00:00
Graham Christensen bc7b192574
Update the action to use node20 (#41)
* Update nixpkgs to unstable, and nodejs to latest

* Upgrade the action to use node20
2023-10-12 11:19:09 -04:00
Graham Christensen 07ebb8d274
Support private flakes on FlakeHub (#38)
Use the GitHub Actions-issued JWT to authenticate with FlakeHub.
The repository will be granted its due permissions on FlakeHub,
and be able to pull the user's private flakes.
2023-10-04 17:35:16 -04:00
Graham Christensen d654f7b93a
Post run diagnostics (#39) 2023-10-04 15:31:05 -04:00
Ana Hobden 2b06132852 Fixup descriptions 2023-07-13 10:23:02 -07:00
Ana Hobden 8e89511534 Add extra_conf, reinstall 2023-07-12 10:24:35 -07:00
Ana Hobden 79baecff38 Typescript rewrite 2023-07-11 10:36:41 -07:00
Ana Hobden 3df486a535
Add act support (#30)
* Add act support

* Unwhoops

* Better format bash

* Relocate some code

* Mac doesn't want to get fancy with mktemp

* Change branch

* Change to a pr instead of branch

* Use the pr all over

* Use main

* Don't cat the conf

* Improve act support

* Bash eval fix

* use single quotes instead

* Fix mac planner name

* Fix quotes again
2023-07-01 22:59:30 +02:00
Ana Hobden 322d409404 Add quotes 2023-06-01 11:32:35 -07:00
Ana Hobden 11e71cc767 Add a ?ci=github to GHA requests 2023-05-31 13:44:05 -07:00
Ana Hobden e46eb0b82c v0.9.0 - nix profile location change 2023-05-24 09:46:04 -07:00
Ana Hobden b29ae48286 Reflect v0.6.0 changes 2023-03-16 10:02:22 -07:00
Cole Helbling 95f9c13053
Reflect removal of channels in upcoming version 2023-03-08 12:37:36 -08:00
Jörg Thalheim 9ac19b020d add option to change diagnostic endpoint 2023-03-01 09:08:39 +01:00
Graham Christensen 252ce0ac76
Merge pull request #12 from DeterminateSystems/grahamc-patch-1
Update the name / description
2023-02-24 19:45:58 +00:00
Graham Christensen aaef2adb3c
Update action.yml
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2023-02-24 14:31:33 -05:00
Graham Christensen c8e9046039
Update action.yml 2023-02-24 14:27:26 -05:00
Graham Christensen e9cc3fbf59
Update action.yml
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2023-02-24 14:23:58 -05:00
Graham Christensen b244ff1af2
Update the name / description 2023-02-24 14:13:42 -05:00
Cole Helbling 2f5a631700 Apply suggestions from code review 2023-02-24 11:05:50 -08:00
Luc Perkins efe036352d
Fix input parameter name 2023-02-17 10:46:55 -08:00
Luc Perkins 2fa855f5ce
Add initial config table to README 2023-02-17 10:45:59 -08:00
Ana Hobden f5af9fdafc
Merge pull request #8 from DeterminateSystems/refine-options-help
Clarify options which require a specific planner
2023-02-15 09:31:57 -08:00
Ana Hobden 2e0b999e19 Clarify options which require a specific planner 2023-02-14 11:21:23 -08:00
Ana Hobden 90e3c538b4
Merge pull request #4 from DeterminateSystems/start-daemon-and-init
Add start-daemon and init args
2023-02-07 07:23:58 -08:00
Ana Hobden 8ca5194c76 More conflicts checked 2023-02-01 10:20:19 -08:00
Zhaofeng Li b7b7f9899e Make the runner user trusted by default
Usually we want the runner user to be able to configure
binary caches.
2023-01-31 19:57:37 -07:00
Ana Hobden 3764baabb9 Add errors if options conflict 2023-01-31 07:44:42 -08:00
Eric Crosson 5866c409ef Add default value for the the github-token input
Since you are likely to be rate-limited if you use this action
without a GitHub API token, default the action's `github-token` input
to the `token` from the `github` context[^1].

Closes #3

[^1]: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
2023-01-30 19:07:32 -06:00
Ana Hobden 6d99d4ce08 init/start-daemon are linux only 2023-01-24 10:51:02 -08:00
Ana Hobden ed4bbe1cd4 Wording around how to use init and start-daemon 2023-01-24 09:29:24 -08:00
Ana Hobden 7f874ef194 Use some arguments as input templated 2023-01-24 08:51:23 -08:00
Ana Hobden 1cf64fd7a6 Add start-daemon and init args 2023-01-24 08:17:18 -08:00
Ana Hobden 78b28a0bb7 Clean up wording 2023-01-16 09:35:30 -08:00
Ana Hobden 3c9332283c Ensure we still set GITHUB_PATH
Further improve logic
2023-01-16 09:19:40 -08:00
Ana Hobden f0508f0de8 Add reinstall option 2023-01-13 12:09:36 -08:00
Ana Hobden 95c215ce17 Fix syntax 2023-01-13 10:16:26 -08:00
Ana Hobden a0e9a28f9b init 2023-01-13 10:04:16 -08:00