Skip to content

Decouple security-gated Linux Docker releases from macOS JRE packaging - #537

Merged
blakeplock merged 5 commits into
mainfrom
ci/independent-linux-container-release
Nov 8, 2026
Merged

blakeplock merged 5 commits into
mainfrom
ci/independent-linux-container-release

Conversation

@blakeplock

Copy link
Copy Markdown
Member

Problem

SQL LRS CD is repeatedly cancelled because the macos-14 reusable-workflow job never starts. The build and release stages require the complete macOS/Linux/Windows JRE matrix, so there is no supported route to publish a patched SQL LRS Docker image even when the Linux image builds and passes security scanning.

Changes

  • Add .github/workflows/docker-linux-release.yml to build an independent Linux container from make bundle BUNDLE_RUNTIMES=false using Java 21.
  • Run this pipeline for Docker-related PRs, manual dispatches, and version tags. On tag pushes, verify the strict semantic version tag and require the commit to be present on main.
  • Verify Java 21 and patched zlib installed in the resulting image.
  • Generate CycloneDX SBOM, Grype JSON evidence, image ID and enforce grype --fail-on high.
  • On tag pushes only, run PostgreSQL 17 integration tests and, after all security checks pass, authenticate with the existing Docker Hub secrets and publish the exact already-scanned image as yetanalytics/lrsql:<version-tag>.
  • Remove the competing, unscanned Docker publishing path from desktop build.yml. Desktop bundles, docs and draft GitHub releases still require all three platform JRE artifacts.

Scope and safeguards

  • No change to Java major version, SQL LRS application, PostgreSQL storage format or its API.
  • No Docker credentials available on PR jobs. No image is published by this PR itself.
  • No latest tag is automatically overwritten. Deployments must explicitly select the validated version/digest.
  • Not a macOS runner fix: GitHub macOS runner cancellation (tracked in CD: macOS JRE runner cancelled before startup, blocking bundle on main #536) remains to diagnose separately; cross-platform desktop release requirements stay intact.

Validation

This PR will run the new Linux-image scan and existing CI. The merged workflow's tag publishing path should be exercised only after the release tag is intentionally created and all checks are reviewed.

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