aboutsummaryrefslogtreecommitdiff
path: root/acid.adoc
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-03-29 14:08:15 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-04-04 19:40:14 +0200
commitfd6959fff82a87e92d9e73cb07e210cebb675050 (patch)
treed7fd170022d99e9d6a978208ab31f169f3574ad8 /acid.adoc
downloadacid-fd6959fff82a87e92d9e73cb07e210cebb675050.tar.gz
acid-fd6959fff82a87e92d9e73cb07e210cebb675050.tar.xz
acid-fd6959fff82a87e92d9e73cb07e210cebb675050.zip
Initial commit
Diffstat (limited to 'acid.adoc')
-rw-r--r--acid.adoc80
1 files changed, 80 insertions, 0 deletions
diff --git a/acid.adoc b/acid.adoc
new file mode 100644
index 0000000..e72be60
--- /dev/null
+++ b/acid.adoc
@@ -0,0 +1,80 @@
+acid(1)
+=======
+:doctype: manpage
+:manmanual: acid Manual
+:mansource: acid {release-version}
+
+Name
+----
+acid - A Continuous Integration Daemon
+
+Synopsis
+--------
+*acid* [_OPTION_]... acid.yaml [_COMMAND_...]
+
+Description
+-----------
+*acid* run without command arguments will start an HTTP server that creates
+and executes tasks upon receiving push notifications from a Gitea instance,
+according to the passed configuration file.
+
+When a command is passed, *acid* will relay it to that running instance
+as an RPC call.
+
+Options
+-------
+*-version*::
+ Output version information and exit.
+
+Commands
+--------
+*restart* _ID_...::
+ Schedule tasks with the given IDs to be rerun.
+
+Configuration
+-------------
+For help with creating the configuration file, consult the _acid.yaml.example_
+file present in the distribution.
+
+All paths are currently relative to the directory you launch *acid* from.
+
+The *notify*, *setup*, and *build* scripts are processed using Go's
+_text/template_ package, and take an object describing the task,
+which has the following fields:
+
+*ID*::
+ Unique integer ID for each task.
+
+*Owner*::
+ Gitea user owning the repository.
+*Repo*::
+ Name of the repository.
+*FullName*::
+ Full name of the repository, including the owner.
+*Hash*::
+ Commit hash pertaining to the task.
+*Runner*::
+ Runner ID.
+*RunnerName*::
+ Descriptive name of the runner.
+
+*URL*::
+ *acid* link to the task, where its log output can be seen.
+*RepoURL*::
+ Gitea link to the repository.
+*CommitURL*::
+ Gitea link to the commit.
+*CloneURL*::
+ Gitea link for cloning the repository over HTTP.
+
+Runners
+-------
+Runners receive the following additional environment variables:
+
+*ACID_ROOT*:: The same as the base directory for configuration.
+*ACID_RUNNER*:: The same as *Runner* in script templates.
+
+Reporting bugs
+--------------
+Use https://git.janouch.name/p/acid to report bugs, request features,
+or submit pull requests.