Releases and image pinning¶
Who publishes what¶
| Source repository | Docker Hub image | Release gate in that repository |
|---|---|---|
backend-rs |
slawekradzyminski/backend-rs |
Rust tests against Postgres, clippy and container smoke |
vite-react-frontend |
slawekradzyminski/frontend |
Unit tests, production build, browser tests, Docker smoke |
warehouse-service-rs |
slawekradzyminski/warehouse-service-rs |
Rust tests against Postgres, clippy, container smoke |
payment-service-rs |
slawekradzyminski/payment-service-rs |
Rust tests against Postgres, clippy, container smoke |
notification-service-rs |
slawekradzyminski/notification-service-rs |
Rust tests against Postgres, clippy, container smoke |
delivery-service-rs |
slawekradzyminski/delivery-service-rs |
Rust tests against Postgres, micro-frontend tests, clippy, container smoke |
llm-service-rs |
slawekradzyminski/llm-service-rs |
Rust tests, clippy, container smoke |
jms-email-consumer-rs |
slawekradzyminski/consumer-rs |
Rust tests, clippy, container smoke |
ollama-mock-rs |
slawekradzyminski/ollama-mock-rs |
Rust tests, clippy, container contract script |
Images are also published to GHCR under the repository name; Compose deploys
from Docker Hub. A semantic-version tag vX.Y.Z runs the release gates and
publishes linux/amd64 + linux/arm64 with SBOM and provenance, and prints
the manifest digest.
Release sequence¶
flowchart TB
A[Merge in source repo] --> B[Tag vX.Y.Z]
B --> C[Publish image]
C --> D[Pin tag@sha256 here]
D --> E[Run contract scripts]
E --> F[Run Compose gates]
F --> G[Merge and deploy]
Release train¶
scripts/release-train.py runs the sequence for backend, warehouse-service,
payment-service, notification-service, llm-service, delivery-service and
frontend (--with-consumer adds the consumer; ollama-mock is pinned by hand). An image whose first release is not published yet is pinned in the
server profile as tag@sha256:PENDING_<SERVICE>_DIGEST (bare tag in the local
profiles); pin replaces it like any other pin. Each step
recomputes the release set from GitHub and the pinned Compose files, so it can
be rerun after a fix; --dry-run performs only reads and prints every action.
python3 scripts/release-train.py --dry-run plan # versions, tags, pins, actions
python3 scripts/release-train.py tag # only when the head's CI is green
python3 scripts/release-train.py wait # fails fast with the run URL
python3 scripts/release-train.py pin # digests, Compose files, compatibility set, release stub
python3 scripts/release-train.py verify --compat # Compose config, contract scripts, course suite
python3 scripts/release-train.py pr --merge # PR, CI, squash-merge
python3 scripts/release-train.py deploy --yes # merged main, clean, Vault links present
deploy first runs the local preflight (release-train.py preflight: server
Compose config and the strict docs image build), then picks
make ansible-deploy-backend-upgrade when the backend version
changed (quiesce, backup, migrate), otherwise make ansible-deploy. Every
step, its checks and its refusals:
Container releases — Release sequence.
Multi-repository releases publish in dependency order — backend first (the
services call its internal API and read its events; the backend calls only
warehouse-service), then the services, then the frontend — and
pin everything in one awesome-localstack change. New
Vault keys go in before the deploy; backend migrations use
make ansible-deploy-backend-upgrade, followed by the course suite (l20).
Contract scripts¶
| Script | Guarantees |
|---|---|
scripts/verify-image-pins.py |
Every remotely pulled image in every profile, CI workflow, the root Dockerfile, docs-site/Dockerfile and the restore tooling is pinned by digest; locally built :local images are exempt |
scripts/verify-release-images.py |
The nine first-party images form one compatibility set across profiles; a PENDING_*_DIGEST placeholder always fails; the sandbox reuses the same images; env-file isolation; no backend sets PAYMENT_BASE_URL (removed in backend 3.16.0); gateway upstreams per host; required gateway locations in every server block (payments, tracking, /internal/, /docs/); the docs service is built locally with a bounded memory limit. --remote also checks both architectures exist |
scripts/verify-java-security.py |
The frozen Java certificate blocklist is mounted in every JVM container (Artemis and the optional Jenkins) |
scripts/verify-deployment-silence.py, verify-backend-upgrade.py, verify-postgres-restore.py |
Ansible ordering and safety properties: preparation (docs build, pulls, Compose validation) before the quiesce, rescue restart of the stopped backends |
scripts/verify-asset-mirror.py |
Runs the deploy's asset mirror against a fixture git repository: files the repository tracked and deleted are pruned; untracked manual files, rendered secrets and app_dir runtime files are kept (CI job verifyContracts, with ansible-playbook --syntax-check of every playbook) |
scripts/verify-edge-proxy.sh |
The edge only trusts forwarded headers from the provider range |
scripts/verify-correlation-ids.py |
Every gateway server block validates or generates X-Request-Id and traceparent, passes them from every proxied location, returns X-Request-Id and logs JSON; the server's application services log ECS JSON. --routing proves it against stub upstreams (Tracing a request) |
scripts/test_release_train.py |
Unit tests of the release train: version parsing, pin replacement, release-section rendering, deploy target, deploy preflight |
CI layout¶
.github/workflows/test.yml runs on pull requests and on main; a branch
without a pull request runs on request (workflow_dispatch). A newer push to a
pull request cancels its running CI.
| Job | Runs | What it does |
|---|---|---|
changes |
always | Lists the changed files and decides which of the jobs below are needed |
verifyContracts |
always | Every contract script above, the release-train and adapter unit tests, the Ansible syntax check and the asset mirror; each step runs even when an earlier one failed |
verifyDocsSite |
always | Builds the docs image (mkdocs build --strict) and smoke-tests the container |
verifyLightweight |
unless only documentation changed | Lightweight profile: feature smoke test, gateway re-resolution |
verifyDocsRag |
unless only documentation changed | The opt-in docs assistant overlay validates with every profile and answers keyless |
runDocker |
unless only documentation changed | Full profile with the Ollama mock |
runDocker-Jenkins |
when the Jenkins image inputs change | Builds the root Dockerfile and waits for Jenkins |
"Only documentation" means every changed file is under docs/, docs-site/ or
is a Markdown file in the repository root. The Jenkins inputs are Dockerfile,
entrypoint.sh, docker-compose-jenkins.yml, run-docker-compose-jenkins.sh
and security/java/. A change to the workflow itself runs everything.
The current pins and the release history are in Container releases.