fix(release): publish binaries to psa-systems-private Generic Packages #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/release-binaries-to-generic-packages"
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?
Summary
BUNYIP-25's first implementation put binary tarballs on the Forgejo release object at
psa-systems/bunyip. Wrong destination - the project convention (and the message printed byjust create-release) is to publish to thepsa-systems-private/bunyipGeneric Packages registry, same org that hosts the OCI images.Change
.forgejo/workflows/create-release.ymlbinariesjob: swap the upload step fromPOST /api/v1/repos/{owner}/{repo}/releases/{id}/assetstoPUT /api/packages/psa-systems-private/generic/bunyip/{tag}/{file}. Idempotency mechanism switches from per-asset name lookup to HTTP-status interpretation:201-> uploaded409-> already exists at that name + version, treated as success (safe to rerun)Package owner / name are exposed as
env:block on the step (psa-systems-private/bunyip) so they're swappable without code changes.README.md"Without Docker" section: download URLs swap to the packages API and gain anAuthorization: tokenheader example (the registry is private, same as the OCI registry, so downloads require aread:package-scoped token).dev-docs/milestone-1-handoff.md: BUNYIP-25 section updated and includes a one-line note about the v0.1.1 misplaced artifacts so future readers know why orphan attachments may exist on the release.Cleanup the user may want to do
Run
fj release asset delete v0.1.1 <name>forbunyip-api-v0.1.1-x86_64-linux-musl.tar.gz,bunyip-web-v0.1.1-static.tar.gz, andSHA256SUMSon the v0.1.1 release atpsa-systems/bunyipto remove the misplaced attachments. (No code action required - happy to do this in the next step if you want.)Test plan
fj actions dispatch create-release.yml mainto re-run against current Cargo.toml (still v0.1.1).https://dev.a8n.run/psa-systems-private/-/packageslists abunyipgeneric package atv0.1.1with the three files.409-on-retry path logs "already exists; skipping" instead of failing.Refs: BUNYIP-25
BUNYIP-25's initial implementation attached release artifacts to the Forgejo release object at psa-systems/bunyip. The intended destination per the just create-release recipe and the rest of the project conventions is the psa-systems-private/bunyip Generic Packages registry - same org that hosts the OCI images. Swap the upload step from POST /releases/{id}/assets to PUT /api/packages/psa-systems-private/generic/bunyip/{tag}/{file}. Idempotency switches from per-asset name lookup to interpreting the HTTP status: 201 = uploaded, 409 = already exists at that name+version (treated as success), anything else = real error. README and milestone-1-handoff updated to point at the new location and document the auth requirement for downloads (read:package scoped token, same kind already needed for docker login dev.a8n.run).