Skip to content

Build and publish tested multi-platform ProxySQL runtime images - #23

Merged
renecannao merged 1 commit into
mainfrom
release/docker-publish-workflow
Nov 5, 2026
Merged

renecannao merged 1 commit into
mainfrom
release/docker-publish-workflow

Conversation

@renecannao

@renecannao renecannao commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Runtime images currently require a manual local Buildx invocation. Add a manually triggered GitHub Actions workflow to build and publish Debian 13 and CentOS 10 images for AMD64 and ARM64 using the existing Docker Hub secrets.

All four native builds must pass version, architecture, client, configuration and running admin-query checks before any registry write. The publisher downloads those tested images and verifies their IDs instead of rebuilding, then assembles multi-platform release tags. Shared latest/major/minor aliases update only when the selected version is the current latest stable release. PRs build and test without logging in; manual runs default to validation, with publishing available only from main.

Validation:

  • Confirmed public 3.0.12 entries for both architectures in the Debian 13 and CentOS 10 repository indexes; downloaded all four packages and matched their SHA256 values to the signed release packages.
  • Actionlint including ShellCheck passes for the new workflow; git diff --check passes. A whole-repository Actionlint run also reports an existing SC2129 style warning in the unchanged shellcheck.yml workflow.
  • All four native build/runtime jobs passed on the first run: Debian AMD64 71s, Debian ARM64 80s, CentOS AMD64 85s, CentOS ARM64 65s. Hadolint, ShellCheck and release validation passed. CI run.
  • Seven direct tests of the real prepare step passed: stable release accepted; v prefix, shell syntax, both prerelease tiers, nonexistent release and branch publishing rejected.
  • Independent review found no actionable defects.
  • Registry credentials and publishing operations are exercised only by an explicit publishing run after merge; no images have been pushed by this change.

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds a GitHub Actions workflow to validate ProxySQL release versions, build and test Debian and CentOS images for AMD64 and ARM64, and optionally publish the tested artifacts to Docker Hub. The README documents workflow inputs, checks, credentials, tags, and publishing conditions.

Changes: Image build and publishing

Layer / File(s) Summary
Workflow inputs and release validation
.github/workflows/proxysql-publish.yml, README.md
Manual runs accept a version and optional publishing flag. The workflow validates the version and release status. The README documents how to run the workflow and its publishing restrictions.
Build, test, and export images
.github/workflows/proxysql-publish.yml, README.md
A build matrix creates and tests Debian and CentOS images for AMD64 and ARM64, then exports successful images as artifacts. The README describes the checks and artifact retention.
Publish images and update tags
.github/workflows/proxysql-publish.yml, README.md
The publishing job uses tested artifacts to create architecture-specific tags and multi-platform manifests. It updates shared aliases only when the version is the latest stable release. The README documents these tags and conditions.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  actor Maintainer
  participant GitHubActions
  participant GitHubReleases
  participant BuildMatrix
  participant ArtifactStore
  participant PublishJob
  participant DockerHub
  Maintainer->>GitHubActions: Start manual run with version and publishing option
  GitHubActions->>GitHubReleases: Validate version and release status
  GitHubActions->>BuildMatrix: Build and test four platform images
  BuildMatrix->>ArtifactStore: Upload tested images and image IDs
  opt Publishing enabled on main
    PublishJob->>ArtifactStore: Download tested artifacts
    PublishJob->>DockerHub: Push version tags and multi-platform manifests
    PublishJob->>GitHubReleases: Check whether version is latest stable
    opt Version is latest stable
      PublishJob->>DockerHub: Update shared aliases
    end
  end
Loading
Merge Risk: Minimal · up to 2540a

No actionable merge-blocking risk was identified. The native image builds still need to pass their checks.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: building and publishing tested multi-platform ProxySQL runtime images.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit watched the images grow,
Four tested builds lined up in rows.
The tags hopped neatly into place,
While stable versions led the race.
Then off the bunny went to nibble.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 29bce14e-5d40-4f88-85d5-3838cf5d5380
Commits

Reviewing files that changed from the base of the PR and between 744434c and 2540ab0.

Files selected for processing: 2

  • .github/workflows/proxysql-publish.yml
  • README.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@renecannao
renecannao merged commit ba57aae into main Nov 5, 2026
9 checks passed
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