agent: image build workflow (#7) #8
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
serious-devs/ai-factory!8
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/issue-7"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements #7: a manual-dispatch workflow that builds, tags and publishes the agent image, then opens the deployment bump PR — the whole chain without any LLM call.
What changed
.forgejo/workflows/image.yml(new) —Build agent image, manual dispatch only:quay.io/podman/stable(no node needed: checkout is a plain anonymousgit clone, the repo is public;git/curl/jqinstalled at step 1),YYYYMMDD-N(UTC date + run number) +latest, pushed to the instance registry asbotwithpodman login --password-stdin,podman build --storage-driver=vfs -f image/Containerfile(per #7: try rootless/fuse later,--privilegedshipped for the first iteration),podman push --digestfile),image-bump, force-pushed) a PR bumping theagent-imagedefault in.forgejo/workflows/agent.yml; merging it is the human gate,BOT_TOKEN) and the git token is kept out of argv (credential helper reading a 0600 file).docs/setup.md— §3 rewritten around the dispatch flow; theimage/Dockerfile→image/Containerfilename drift fixed.README.md— layout table gains the new workflow file; same name-drift fix.Verification
workflow_dispatchworkflow only becomes runnable once onmain. Post-merge validation path (also the acceptance criteria of #7):BOT_TOKENscopes first: package write + repository write + issue write (first dispatch fails with a 403 at the missing step otherwise),Build agent image→ expect registry tagsYYYYMMDD-N+latest, annotated git tag on main's HEAD, summary showing the digest,main(one line changed),test_factory_aiwithoutagent-imageoverride → it uses the new tag.Wiki updates on merge
Workflowpage — Plumbing table: add a row for.forgejo/workflows/image.yml(build & publish the agent image on manual dispatch; immutableYYYYMMDD-Ntag +latest; opens the bump PR).Limitationspage — nothing to change (the images-pinned-by-tag caveat stays true and is now handled by the bump PR).Homepage — nothing to change.Closes #7