feat: fix webui task table and add merge-to-deploy automation
- webui: task rows referenced Go-style field names but store.Task JSON-marshals with lowercase tags, so every task row rendered blank - add .gitea/workflows/deploy.yml: build+push archied and archie-agent images to the registry on merge to main - docker-compose.yml: add a watchtower service so carina picks up new images and restarts the daemons without needing CI to SSH in
This commit is contained in:
1 parent
f2ce58e9f6
commit
bb784297ae
3 files changed
+49
-5
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# Builds and pushes the archied and archie-agent images on every merge
|
||||
# to main. carina's watchtower container (see docker-compose.yml) picks
|
||||
# up the new images and restarts the running daemons — this workflow
|
||||
# never touches carina directly.
|
||||
name: deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to registry
|
||||
run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login git.catlow.cloud -u sam --password-stdin
|
||||
|
||||
- name: Build and push archied
|
||||
run: |
|
||||
docker build -f Dockerfile.archied -t git.catlow.cloud/sam/archied:latest .
|
||||
docker push git.catlow.cloud/sam/archied:latest
|
||||
|
||||
- name: Build and push archie-agent
|
||||
run: |
|
||||
docker build -f Dockerfile -t git.catlow.cloud/sam/archie-agent:latest .
|
||||
docker push git.catlow.cloud/sam/archie-agent:latest
|
||||
@@ -53,5 +53,20 @@ services:
|
||||
entrypoint: [""]
|
||||
restart: "no"
|
||||
|
||||
# ── deploy watcher ──────────────────────────────────────────────────
|
||||
# Polls the registry for new archied/archie-agent images (pushed by
|
||||
# .gitea/workflows/deploy.yml on merge to main) and restarts the
|
||||
# containers that changed. Registry auth comes from the host's
|
||||
# existing `docker login` config, mounted read-only.
|
||||
watchtower:
|
||||
image: nickfedor/watchtower
|
||||
environment:
|
||||
- DOCKER_CONFIG=/
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ${HOME}/.docker/config.json:/config.json:ro
|
||||
command: --interval 60 --cleanup archie-core-archied-1 archie-core-archied-winter-1
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
nats_data:
|
||||
@@ -157,11 +157,11 @@ async function refresh() {
|
||||
.join("") || '<div class="card"><div class="n">0</div><div class="l">tasks</div></div>';
|
||||
|
||||
$("#tasks tbody").innerHTML = (tasks ?? []).map(t => `
|
||||
<tr class="task" onclick="showTask(${t.ID}, '${esc(t.Owner)}/${esc(t.Repo)}#${t.IssueNumber}')">
|
||||
<td>${esc(t.Owner)}/${esc(t.Repo)}</td><td>#${t.IssueNumber}</td>
|
||||
<td>${esc(t.Title)}</td><td>${esc(t.Workflow)}</td>
|
||||
<td><span class="status ${esc(t.Status)}">${esc(t.Status)}</span></td>
|
||||
<td class="num">${fmt(t.Iterations)}</td><td class="num">${fmt(t.TokensUsed)}</td>
|
||||
<tr class="task" onclick="showTask(${t.id}, '${esc(t.owner)}/${esc(t.repo)}#${t.issue_number}')">
|
||||
<td>${esc(t.owner)}/${esc(t.repo)}</td><td>#${t.issue_number}</td>
|
||||
<td>${esc(t.title)}</td><td>${esc(t.workflow)}</td>
|
||||
<td><span class="status ${esc(t.status)}">${esc(t.status)}</span></td>
|
||||
<td class="num">${fmt(t.iterations)}</td><td class="num">${fmt(t.tokens_used)}</td>
|
||||
</tr>`).join("");
|
||||
|
||||
$("#workflows tbody").innerHTML = (summary.workflows ?? []).map(w => `
|
||||
|
||||
Reference in new issue
Block a user