Update agentloop via Renovate #495

Closed
opened 2026-06-06 15:37:47 +00:00 by guettli · 2 comments
guettli commented 2026-06-06 15:37:47 +00:00 (Migrated from codeberg.org)

Agentloop has version numbers (git tags) now.

Can Renovate bot update when a new git tag was set? Or is a release needed?

Agentloop has version numbers (git tags) now. Can Renovate bot update when a new git tag was set? Or is a release needed?
guettlibot commented 2026-06-06 15:45:19 +00:00 (Migrated from codeberg.org)

Now I have a complete picture. Let me write the implementation plan.


Implementation Plan

Answer: Git tags are sufficient — Renovate supports github-tags as a datasource, so no formal GitHub Release is needed.

How it works today: agentloop runs from a live git clone at /home/si/agentloop/agentloop (cron fires every 5 minutes). There is no pinned version anywhere — the server runs whatever commit is checked out.

Goal: Renovate detects new agentloop tags and opens a PR to bump the pinned version; merging that PR triggers an update on the server.


Step 1 — Add a version pin file to the sharedinbox repo

Create .agentloop-version at the repo root containing the current tag, e.g.:

v0.1.0

Step 2 — Add a custom Renovate manager in renovate.json

{
  "customType": "regex",
  "fileMatch": ["^\\.agentloop-version$"],
  "matchStrings": ["(?<currentValue>[^\\n]+)"],
  "depNameTemplate": "guettli/agentloop",
  "datasourceTemplate": "github-tags"
}

Renovate will now watch GitHub tags for guettli/agentloop and open a PR to update .agentloop-version whenever a new tag is pushed. No GitHub Release needed.

Step 3 — Wire the version pin into the server update script

The deploy cron (/home/si/si-deploy-cron/deploy.sh) or a new script should, after detecting a change to origin/main in the sharedinbox repo, read .agentloop-version, then:

cd /home/si/agentloop
git fetch --tags
git checkout <version from .agentloop-version>
go build -o agentloop .

This ensures the running binary matches the pinned version after every Renovate merge.


Summary: No release needed — add .agentloop-version to sharedinbox, configure a Renovate regex manager using datasource: github-tags, and update the server deploy script to checkout the pinned tag and rebuild. Renovate will open a PR for each new tag automatically.

Now I have a complete picture. Let me write the implementation plan. --- **Implementation Plan** **Answer**: Git tags are sufficient — Renovate supports `github-tags` as a datasource, so no formal GitHub Release is needed. **How it works today**: agentloop runs from a live git clone at `/home/si/agentloop/agentloop` (cron fires every 5 minutes). There is no pinned version anywhere — the server runs whatever commit is checked out. **Goal**: Renovate detects new agentloop tags and opens a PR to bump the pinned version; merging that PR triggers an update on the server. --- ### Step 1 — Add a version pin file to the sharedinbox repo Create `.agentloop-version` at the repo root containing the current tag, e.g.: ``` v0.1.0 ``` ### Step 2 — Add a custom Renovate manager in `renovate.json` ```json { "customType": "regex", "fileMatch": ["^\\.agentloop-version$"], "matchStrings": ["(?<currentValue>[^\\n]+)"], "depNameTemplate": "guettli/agentloop", "datasourceTemplate": "github-tags" } ``` Renovate will now watch GitHub tags for `guettli/agentloop` and open a PR to update `.agentloop-version` whenever a new tag is pushed. No GitHub Release needed. ### Step 3 — Wire the version pin into the server update script The deploy cron (`/home/si/si-deploy-cron/deploy.sh`) or a new script should, after detecting a change to `origin/main` in the sharedinbox repo, read `.agentloop-version`, then: ```bash cd /home/si/agentloop git fetch --tags git checkout <version from .agentloop-version> go build -o agentloop . ``` This ensures the running binary matches the pinned version after every Renovate merge. --- **Summary**: No release needed — add `.agentloop-version` to sharedinbox, configure a Renovate regex manager using `datasource: github-tags`, and update the server deploy script to checkout the pinned tag and rebuild. Renovate will open a PR for each new tag automatically.
guettli commented 2026-06-06 23:25:22 +00:00 (Migrated from codeberg.org)

via k3s now.

via k3s now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: guettli/sharedinbox#495