Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
106 linesCodeBlameRaw
1<!doctype html>
2<!--
3 The runner, in a window of its own, apart from the settings: opened from
4 the chip beside the title bar's settings button, the tray, or the menu
5 (src/settings.rs open_runner). What it is doing, each kind of job it
6 runs and the job each is running, how jobs run and for which workspace,
7 its updates and its log, live (runner.js). Its words are the app's
8 (src/runner/diagnosis.rs).
9-->
10<html lang="en">
11 <head>
12 <meta charset="utf-8" />
13 <meta name="viewport" content="width=device-width, initial-scale=1" />
14 <meta name="color-scheme" content="dark" />
15 <title>g1t runner</title>
16 <link rel="stylesheet" href="settings.css" />
17 </head>
18 <body>
19 <!-- Its title bar, when g1t draws its own (src/frame.rs): drag it to move the window. -->
20 <header class="titlebar" id="titlebar" hidden>
21 <span>Runner</span>
22 <button type="button" id="close-window" class="caption" aria-label="Close" title="Close" tabindex="-1">
23 <svg viewBox="0 0 16 16" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" aria-hidden="true">
24 <line x1="4" y1="4" x2="12" y2="12" />
25 <line x1="12" y1="4" x2="4" y2="12" />
26 </svg>
27 </button>
28 </header>
29 <div class="page">
30 <main>
31 <h1>Runner</h1>
32 <p class="muted lede">Your workspace's <code>runs-on: self-hosted</code> jobs run on this computer while g1t is open, at no cost.</p>
33
34 <!-- What the whole runner is doing, as the title bar's chip says it, with its Start or Stop. -->
35 <div class="engine" id="engine">
36 <span class="dot" id="engine-dot" aria-hidden="true"></span>
37 <span class="engine-text">
38 <strong id="engine-label" role="status" aria-live="polite">Runner</strong>
39 <span class="muted" id="engine-sub">&nbsp;</span>
40 </span>
41 <button type="button" id="engine-toggle" hidden>Stop</button>
42 </div>
43
44 <section aria-labelledby="kinds-heading" id="runner-section">
45 <h2 id="kinds-heading" class="visually-hidden">Jobs</h2>
46 <!--
47 What affects the whole runner (signed out, no workspace, turned off,
48 the sandbox down): why, and how to fix it (src/runner/diagnosis.rs).
49 Hidden when the cards below say it all.
50 -->
51 <div class="diagnosis" id="runner-diagnosis" role="status" aria-live="polite" hidden>
52 <span class="dot" id="runner-dot" aria-hidden="true"></span>
53 <span class="diagnosis-text">
54 <strong id="runner-title">Runner</strong>
55 <span class="muted" id="runner-cause"></span>
56 <span id="runner-fix"></span>
57 <span class="buttons" id="runner-actions"></span>
58 </span>
59 </div>
60 <!-- Sandboxed: each kind of job it runs, a card of its own, started and stopped on its own. -->
61 <div class="kinds" id="runner-kinds" role="list" aria-label="Kinds of job this computer runs" hidden></div>
62 </section>
63
64 <section aria-labelledby="setup-heading">
65 <h2 id="setup-heading">Setup</h2>
66 <label class="setting">
67 <span
68 ><strong>Run jobs on this computer while g1t is open</strong
69 ><span class="muted">Off, nothing runs here until you turn it on again.</span></span
70 >
71 <input type="checkbox" role="switch" id="runner" />
72 </label>
73 <label class="setting">
74 <span><strong>How jobs run</strong><span class="muted" id="runner-backend-note">&nbsp;</span></span>
75 <select id="runnerBackend">
76 <option value="sandboxed">Sandboxed (recommended)</option>
77 <option value="docker">In Docker</option>
78 <option value="host">Directly on this computer</option>
79 </select>
80 </label>
81 <label class="setting">
82 <span><strong>Workspace</strong><span class="muted" id="runner-workspace-note">The workspace whose jobs it runs. Only a workspace's owners can add runners to it.</span></span>
83 <select id="runnerWorkspace"></select>
84 </label>
85 <div class="setting">
86 <span><strong id="runner-machine">This computer</strong><span class="muted" id="runner-version">&nbsp;</span></span>
87 <span class="buttons"
88 ><button type="button" id="runner-check" hidden>Check for runner updates</button
89 ><button type="button" id="runner-view">View on g1t</button></span
90 >
91 </div>
92 </section>
93
94 <section aria-labelledby="log-heading">
95 <h2 id="log-heading">Log</h2>
96 <pre class="live-log" id="runner-log" tabindex="0" aria-label="The runner's recent log">Nothing yet.</pre>
97 <p class="buttons"><button type="button" id="runner-open-log">Open the whole log</button></p>
98 </section>
99
100 <p class="error" id="error" role="alert" hidden></p>
101 <p class="muted small foot"><a href="https://docs.g1t.sh/guides/desktop/#the-runner">About the runner</a></p>
102 </main>
103 </div>
104 <script src="runner.js"></script>
105 </body>
106</html>