Skip to content

ci(rds): PR dry-run + workflow_dispatch test path for postgres image publish#804

Merged
vieiralucas merged 1 commit intomainfrom
worktree-verify-rds-images-publish
Apr 27, 2026
Merged

ci(rds): PR dry-run + workflow_dispatch test path for postgres image publish#804
vieiralucas merged 1 commit intomainfrom
worktree-verify-rds-images-publish

Conversation

@vieiralucas
Copy link
Copy Markdown
Member

@vieiralucas vieiralucas commented Apr 27, 2026

Follow-up to #803. Verifies the prebuilt-postgres-image publish path before we cut a release.

Summary

  • New pull_request trigger on .github/workflows/docker-rds-images.yml (paths-filtered to the workflow file + crates/fakecloud-rds/assets/postgres/**). Runs the full multi-arch build for all 4 postgres majors with push: false — catches Dockerfile typos and workflow syntax regressions before a release tag fires.
  • workflow_dispatch now publishes to ghcr.io but tagged as <major>-dev-<short-sha> instead of <major>-<version>. Also skips the rolling <major> tag. End-to-end validation of the push + manifest-merge path without polluting release tags.
  • On a real v* tag push, behaviour is unchanged: <major>-<version> pinned + rolling <major>.

Test plan

  • CI dry-run (this PR) builds all 8 (4 majors × 2 arches) jobs successfully → confirms the multi-arch build path works.
  • After merge: trigger docker-rds-images.yml via workflow_dispatch against main. Expect it to publish 4 images tagged <major>-dev-<short-sha> to ghcr.io/faiscadev/fakecloud-postgres.
  • Manually docker pull ghcr.io/faiscadev/fakecloud-postgres:16-dev-<sha> and confirm both arches are present in the manifest list.
  • If both pass → cut release v0.13.1. The real release will exercise the same publish path with the proper <major>-<version> + rolling <major> tags.

Summary by cubic

Adds a PR dry-run and a dev-tagged workflow_dispatch path to validate the prebuilt Postgres image pipeline before releases. Real release tags still publish <major>-<version> plus rolling <major> with no behavior change.

  • New Features
    • PRs touching the workflow or crates/fakecloud-rds/assets/postgres/** run the full multi-arch build for Postgres 13–16 on linux/amd64 and linux/arm64 with no push, to catch build/workflow issues early.
    • workflow_dispatch publishes to ghcr.io/faiscadev/fakecloud-postgres with <major>-dev-<short-sha> tags and merged multi-arch manifests, skipping the rolling <major> tag.

Written for commit 867ce12. Summary will update on new commits. Review in cubic

…_dispatch

PRs that touch the workflow or the embedded postgres assets now run the
full multi-arch build (no push) so we catch Dockerfile typos and
workflow syntax breaks before they hit a release tag.

`workflow_dispatch` runs the publish path end-to-end too, but tags
images as `<major>-dev-<sha>` instead of `<major>-<version>` (and
skips the rolling `<major>` tag) — gives us a way to verify ghcr.io
push, multi-arch manifest merge, and metadata-action wiring against
real artifacts before cutting a release.
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vieiralucas vieiralucas merged commit 2de45b7 into main Apr 27, 2026
63 of 64 checks passed
@vieiralucas vieiralucas deleted the worktree-verify-rds-images-publish branch April 27, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant