Add runner registration instructions (2)
What does this MR do and why?
This change adds specific registration instructions for each platform according to the user's selection during runner creation.
This is a large MR!
This MR includes over 700 lines
This is a summary of the changes:
- We are working behind the
create_runner_workflow
feature flag. - Adds a new mounting point for our page at
#js-admin-register-runner
(a bit of boilerplate) - Adds a new
app
component with an Apollo query in it (so a bit more bolierplate) - Renders instructions for different platforms, with a helper
cli_command
component
Related MRs
Screenshots or screen recordings
UI notes
After a discussion over Slack at https://gitlab.slack.com/archives/C0199KBMY59/p1676910832818489 (internal) I used user-select: none;
in part of the command to allow the user to have their command in a single line, so it behaves like the copy button:
This allows us to avoid using line breaks in the command.
The command prompt (e.g. $
) is also ignored when copying.
How to set up and validate locally
- Enable the feature flag: in your console
rails c
, and thenFeature.enable(:create_runner_workflow)
- Visit Admin -> CI/CD -> Runners
- Select the "New instance runner" button
- Input values to create a new runner, select a platform you want.
- After "submit", confirm the success message
- In the runner list a "Never connected" runner will appear.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #383139 (closed)