added bazel builds

This commit is contained in:
ari committed 2026-11-01 14:59:37 -05:00
1 parent 4c082aca7c
commit e90c9f324b
23 files changed
+460 -86

No files matched your search

+2
View File
@@ -109,6 +109,8 @@ The module runs the bot as a systemd service with `/var/lib/slackerbot` as its s
sudo nix build git+https://gitea.skyg.ca/ari/slacker-bot.git#slackerbot -o /opt/slackerbot # or: cd slackerbot && go build
```
Or build a static binary with Bazel from a checkout: `bazel build --config=release //slackerbot:slackerbot_tar` produces `bazel-bin/slackerbot/slackerbot_tar.tar.gz`, which holds `usr/bin/slackerbot`.
Run it as a systemd service so the secrets file from step 4 is loaded. Save this as `/etc/systemd/system/slackerbot.service`:
```ini