Tiny CI platform, not the most secure
Go to file
2024-08-29 15:25:03 -04:00
.gitignore first commit 2024-08-29 15:25:03 -04:00
index.php first commit 2024-08-29 15:25:03 -04:00
LICENSE first commit 2024-08-29 15:25:03 -04:00
README.md first commit 2024-08-29 15:25:03 -04:00
task.php first commit 2024-08-29 15:25:03 -04:00
viewtask.php first commit 2024-08-29 15:25:03 -04:00

NanoCI

This is a small CI written in PHP, but can produce anything.

Quickstart

Start off by making an environment variable AUTH_KEY.

Now, create a folder named tasks/<TASKNAME>.task.

Then, make a file in it called TASK, and executable.

This is a template:

#!/bin/bash
cd $(dirname ${BASH_SOURCE[0]})
rm -vfr artifacts
mkdir -p artifacts

Just place your stuff in artifacts when done.

Now, you can add a webhook which is http://<SERVER_URL>/task.php?task=TASKNAME&authkey=CHANGEME.