Skip to content

🧹 chore: build images with native Docker and Buildx - #8

Merged
jpmcb merged 1 commit into
mainfrom
docker-native/pgtapes
Sep 22, 2026
Merged

jpmcb merged 1 commit into
mainfrom
docker-native/pgtapes

Conversation

@jpmcb

@jpmcb jpmcb commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

👨🏼

Docker buildx native image build. Refs PCC-1423

🤖

  • Replace Dagger image publication APIs with direct Docker and pinned Buildx; retain a minimal automatic Dagger boot/readiness check and external PR checks.
  • Preserve the manual publishing contract and CloudNativePG tag validation before authentication/publication.
  • Use QEMU for target-architecture package installation and an explicit persistent local builder.

Validation

  • Local amd64 image and PostgreSQL extension runtime smoke.
  • Native Dagger check: Dockerfile build, PostgreSQL boot, and successful pg_isready; module loading and Nix flake evaluation.
  • Tag acceptance/rejection cases and Make dry-runs.
  • Independent review and targeted tag-guard re-review.
  • Workflow actionlint (only existing Depot runner-label diagnostics ignored) and diff checks.
  • Remote CI on this branch; no images were published during local validation.

Remaining verification / scope

Local ARM64 execution was not validated; CI provisions QEMU and Buildx. Upstream image indexes include both architectures.

@linear-code

linear-code Bot commented Sep 21, 2026

Copy link
Copy Markdown

PCC-1423

@jpmcb
jpmcb marked this pull request as ready for review September 22, 2026 00:25
@greptile-apps

greptile-apps Bot commented Sep 22, 2026

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no concrete correctness, security, publication, or workflow failure was identified.

Summary

This PR replaces the repository’s image-only Dagger implementation with native Docker and Buildx while retaining Dagger for external pull-request metadata checks.

  • Adds direct local Docker builds and persistent multi-platform Buildx publication.
  • Updates CI to validate both amd64 and arm64 image builds through QEMU and Buildx.
  • Preserves manual ECR publication and performs CloudNativePG tag validation before authentication.
  • Narrows the Docker build context to the Dockerfile and initialization SQL required by the image.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  S[Repository source] --> L[Local docker build]
  L --> I[Local PostgreSQL image]
  S --> C[CI Buildx build]
  C --> A[amd64 validation]
  C --> R[arm64 validation via QEMU]
  S --> T[Validate CloudNativePG tag]
  T --> E[Authenticate to ECR Public]
  E --> P[Buildx multi-platform push]
  P --> M[Published amd64/arm64 image index]
Loading

Reviews (1) · Last reviewed commit: "🧹 chore: build images with native Docke..."

@jpmcb
jpmcb force-pushed the docker-native/pgtapes branch 2 times, most recently from 25f6240 to dbaa5b0 Compare September 22, 2026 00:39
@jpmcb
jpmcb force-pushed the docker-native/pgtapes branch from dbaa5b0 to 911f48f Compare September 22, 2026 00:48
@jpmcb
jpmcb merged commit 0008e36 into main Sep 22, 2026
7 checks passed
@jpmcb
jpmcb deleted the docker-native/pgtapes branch September 22, 2026 01:11
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