Skip to content

feat: embed reserved image revisions in container builds - #31

Merged
Skaronator merged 1 commit into
mainfrom
feat/container-package-version
Nov 1, 2026
Merged

Skaronator merged 1 commit into
mainfrom
feat/container-package-version

Conversation

@Skaronator

Copy link
Copy Markdown
Contributor

Summary

  • Reserve the production revision before building and expose the full immutable tag as PACKAGE_VERSION.
  • Add container-release finalize to verify the reserved draft and attach notes from the tested artifact after upload, without allocating another revision.
  • Pass preview package identifiers to PR builds and the same package version to host-side smoke tests.
  • Set org.opencontainers.image.version to the complete package version including -rN; keep org.opencontainers.image.revision as the source Git SHA. No custom revision label is needed.
  • Reject caller overrides of the reserved PACKAGE_VERSION build argument.

Validation

  • go test -race ./...
  • go vet ./...
  • actionlint
  • Tests cover reservation before build, workflow ordering, OCI labels, stable/prerelease finalization, stale commits, draft identity mismatches, and failure paths.
  • Local amd64 application builds checked package metadata in Sonarr, Radarr, and Prowlarr, including preview and local identifiers. No production releases were created during validation.

Rollout

Merge this shared tooling PR before the corresponding Sonarr, Radarr, Prowlarr, and docs PRs. Rerun image PR CI after this merges so both architectures use the updated shared workflow.

Failed production builds retain their draft reservations and consume revisions; published revision numbers may have gaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant