refactor(ci): build only the binary, no OCI image push #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/binary-only-workflow"
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?
The release pipeline only consumes the static musl binary that ships through Generic Packages and Dufs - nothing downstream pulls the runtime OCI image we were pushing to
dev.a8n.run/pandoras-box/monkey. Building and pushing that image on every push to main added several minutes of build time plus a registry round-trip for no consumer.This change strips the workflow down to "build the binary, publish it":
Set up buildx builder(docker-container driver),Log in to container registry, andBuild and push monkey imagesteps.IMAGE_REGISTRYenv var that only existed to compute OCI tag arguments.Extract binary from buildtoBuild binaryand removed the duplicatedbuild_argssetup that fell out when the OCI step disappeared.^docker buildx build --target binary --output type=local,dest=./output -f oci-build/Dockerfile .invocation, which exports only the scratchbinarystage of the Dockerfile. The runtime alpine stage inoci-build/Dockerfileis no longer reached from CI but stays in the repo sojust docker-buildstill produces a runtime image locally..forgejo/workflows/build-binary.ymland updated the workflowname, job id, job name, and path filters to match. Updated the one stalebuild-oci-image.ymlreference indocs/superpowers/specs/2026-04-16-video-conversion-design.md.The Generic Package + Dufs publish steps are unchanged. They authenticate against the Forgejo API with
secrets.FORGEJO_PAT(HTTP basic auth on the package upload URL, notdocker login), so the secret stays inenv:for those steps.Test plan
Build binaryworkflow runs on this branch, theBuild binarystep completes, and the binary lands in Generic Packages athttps://dev.a8n.run/api/packages/pandoras-box/generic/monkey/<tag>/monkey-linux-x86_64.dev.a8n.run/pandoras-box/monkeyfor this run.v*tag, confirm the Dufs upload step still fires and uploads tohttps://<DUFS_DOMAIN>/public/linux/x86_64/monkey/<version>/monkey.