Files
agent-builds/README.md
zeb f116aa82b1
Some checks failed
build-agent / build (push) Failing after 15m34s
agent-builds: initial pipeline (scan & publish upstream rmmagent tags)
2026-11-14 22:07:23 -08:00

2.9 KiB

agent-builds

Self-service distribution of TacticalRMM agent binaries, built on every tag of the upstream project and published here.

This exists because upstream has never published the Linux/macOS release assets, so TRMM's built-in "Update agent" 404s for Linux and macOS. The RMM2 sponsorship shim now 302s agent update fetches for plat=linux|darwin to the raw file URLs in this repo. The repo is public on purpose: agents follow the 302 anonymously.

Fetch URL format (what the shim 302s to)

https://git.izebra.net/izebra_projects/agent-builds/raw/branch/v{ver}/dist/v{ver}/tacticalagent-v{ver}-{plat}-{arch}
  • ver = X.Y.Z (the git tag, without leading v in the version field)
  • plat = linux | darwin
  • arch = amd64 | arm64 | arm | 386
  • No auth. Windows is untouched (still served from the upstream GitHub release).

What is built

8 targets per version, CGO_ENABLED=0, -ldflags "-s -w" (no qemu needed — Go cross-compiles natively):

OS archs
linux amd64 arm64 arm 386
darwin amd64 arm64
windows amd64 386

Each dist/v{ver}/ also contains SHA256SUMS for the binaries. The agent does not verify checksums (upstream behavior); the file is for humans and future tooling.

Triggers (all run the same idempotent scan & publish job)

trigger effect
hourly cron :17 newest upstream semver tag not yet tagged here is built + published
UI "Run workflow" same scan, on demand
push to publish branch same scan, on demand: git push origin main:publish

A version already tagged in this repo is never rebuilt. Only the newest upstream tag is ever auto-published: the TRMM server always tells agents to fetch the newest version, so older versions are never requested.

Rolling a new version out to the fleet

Publishing here is not enough by itself. The RMM2 server constant LATEST_AGENT_VER (/rmm/api/tacticalrmm/tacticalrmm/local_settings.py, currently 2.12.0) must be bumped to the new version and the API restarted — that constant is what get_agent_url() serves to agents. Until the bump, agents keep fetching 2.12.0 (which this repo serves fine).

Runner

The build job runs on the agentbuilds act_runner (container agentbuilds-runner, image agentbuilds-runner:0.1 = act_runner 0.2.13 + Go 1.24 + git/curl/jq/bash) on DKR4. Runner stack: ~/agentbuilds-runner/ (compose, config, token files).

Upstream

github.com/amidaware/rmmagent — the agent is Go, go 1.20, root package main. The binary self-reports the version hard-coded in main.go at the pinned tag, so a build of tag vX always reports X (verified per tag).