A bespoke build system for static websites
  • Shell 84.3%
  • Dockerfile 15.7%
Find a file
Max R. 8dd1eef6ce
All checks were successful
Build and Push Image / build-and-push (push) Successful in 54s
correctly cache tags
2026-02-15 19:58:53 -08:00
.forgejo/workflows fix typo in workflow 2026-02-13 15:47:57 -08:00
etc pull the correct image in service file 2026-02-15 19:39:54 -08:00
latest correctly cache tags 2026-02-15 19:58:53 -08:00
testdata correctly cache tags 2026-02-15 19:58:53 -08:00
.gitignore fix various bugs 2026-02-15 18:55:32 -08:00
LICENSE initial commit 2026-01-22 22:33:41 -08:00
README.md fix various bugs 2026-02-15 18:55:32 -08:00

Background Radiation

Background Radiation, or BakRad, or br is a bespoke build system for static sites. I use it to automate deployment of the various static sites I run with Caddy.

Usage

Run the container, ensuring you have mounted a config file to /etc/bakrad/config. The config file is a plaintext, newline delimited list of HTTPS links to Git repositories containing your site.

BakRad functions using Git tags, it will only update a site when it detects a change in tag since the last run (tags are cached at /var/bakrad/tags).

If the script detects a ts/ or scss/ directory is present within the Git repository, it will compile files using the respective compiler.

Ensure the root folder for your production sites is mounted at /srv/www/, which is where BakRad will place updated sites.

docker run \
    --rm \
    --tty \ # Allocate pseudo-tty for log colors
    -v /etc/opt/slapshit/bakrad:/etc/bakrad \
    -v /srv/www:/srv/www/ \
    -v /var/opt/slapshit/bakrad:/var/cache/bakrad \
    bakrad
$ cat /etc/opt/slapshit/bakrad/config
https://slapshit.net/SCROTEGANG/scrote.gay
...

License

MIT