Skip to content

ci: publish retained PR previews in the production package - #36

Merged
Skaronator merged 2 commits into
mainfrom
ci/shared-package-pr-previews
Nov 1, 2026
Merged

Skaronator merged 2 commits into
mainfrom
ci/shared-package-pr-previews

Conversation

@Skaronator

Copy link
Copy Markdown
Contributor

Summary

  • Publish same-repository PR previews to the production image from the planner matrix, honoring meta.yaml image overrides.
  • Retain the existing pr-<number>-<track> and merge-SHA tags, package identity, PR comments, provenance/SBOMs, and uncached multiarchitecture validation.
  • Reserve pr- in production moving-tag validation to prevent namespace collisions.
  • Remove the shared preview cleanup workflow, CLI, implementation, and tests. Keep OCI preview ownership annotations for artifact identification.
  • Fork PRs remain build/test-only. PRs do not create releases, move production aliases, or notify the website.

Validation

  • go test -race ./...: passed.
  • go vet ./...: passed.
  • actionlint: passed.
  • Shared planner validation for gallery-dl, zrepl, sonarr, radarr, prowlarr, and lidarr: passed.
  • Workflow tests cover default and overridden production destinations; tag tests reject PR aliases for stable and prerelease production tracks.
  • git diff --check: passed.

Merge prerequisites

  1. Merge and deploy fix: exclude PR preview tags from container documentation docs#46 so docs never display PR tags or query their manifests.
  2. Merge removal of every container cleanup caller before this PR; otherwise their daily schedules would reference a deleted shared workflow.
  3. Merge this PR, then rerun all jobs in open container PR workflows to use the new shared workflow/tooling.

Existing -pr packages are untouched. Previews and untagged artifacts from reruns now accumulate without automatic deletion. Actual preview pulls contribute to the production package download total; publication/retention alone does not increase it.

Full application builds and live same-package publishing have not been run locally. No production tags or packages were modified.

@Skaronator

Copy link
Copy Markdown
Contributor Author

Rollout dependencies are now open:

Merge this shared workflow PR last, then rerun all jobs in an eligible container PR to verify anonymous same-package preview pulls and absence from docs selectors. No PRs have been merged and no existing GHCR packages have been deleted.

@Skaronator

Copy link
Copy Markdown
Contributor Author

Fixed the initial CI ShellCheck SC2153 warning by removing the redundant lowercase image variable and using the matrix-provided IMAGE directly. Revalidated locally with the exact CI actionlint version (go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.7) and ShellCheck 0.11.0 on PATH, plus go test -race ./...; both passed. The docs PR test and live website build checks are also green.

@Skaronator
Skaronator merged commit 8659f73 into main Nov 1, 2026
1 check passed
@Skaronator
Skaronator deleted the ci/shared-package-pr-previews branch November 1, 2026 17:50
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