Skip to content

Commit 61eb018

Browse files
authored
docs(ci): document Quay as the release registry (#5810)
CI.md and the release skills now name quay.io/ai-openshell for released images and charts, and CI.md describes the CI and release registries and how release jobs authenticate to Quay. Refs #4554 Signed-off-by: Simon Scatton <sscatton@nvidia.com>
1 parent 05a9a0e commit 61eb018

3 files changed

Lines changed: 17 additions & 23 deletions

File tree

‎.agents/skills/release-openshell/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Wait for the entire Pre-release run to pass before promoting it. Stable tag push
7676
start Release. Release Auto-Tag creates and dispatches prereleases on `main`.
7777

7878
Stable releases serialize across branches. A release older than the highest
79-
stable Git tag publishes versioned artifacts without moving GHCR `latest`, the
79+
stable Git tag publishes versioned artifacts without moving Quay `latest`, the
8080
GitHub latest release, npm `latest`, or snap `latest/stable`. Its npm package
8181
uses `release-X.Y`; snap files remain available in its GitHub Release rather than
8282
updating a Snap Store support track. Docs retain an

‎.agents/skills/test-release-canary/SKILL.md‎

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,21 @@ Note `install.sh` is pulled from `raw.githubusercontent.com/ai-openshell/openshe
9292

9393
`Release Dev` publishes two chart versions for every dev build (see the push steps in `.github/actions/release-helm-oci/action.yml`):
9494

95-
- `oci://ghcr.io/ai-openshell/openshell/helm-chart:0.0.0-dev` — floating, overwritten on every main push.
96-
- `oci://ghcr.io/ai-openshell/openshell/helm-chart:0.0.0-dev.<sha>` — SHA-pinned, with `appVersion` set to the same SHA so it pulls the matching `gateway`, `sandbox`, and `supervisor` images.
95+
- `oci://quay.io/ai-openshell/charts/openshell:0.0.0-dev` — floating, overwritten on every main push.
96+
- `oci://quay.io/ai-openshell/charts/openshell:0.0.0-dev.<sha>` — SHA-pinned, with `appVersion` set to the same SHA so it pulls the matching `gateway`, `sandbox`, and `supervisor` images.
9797

9898
To smoke-test the chart for a specific dev build, dispatch `Release Dev` on the branch first, then run the kind canary steps locally pointed at the SHA-pinned chart (see "Local kind reproduction" below). The release-canary workflow itself does not currently expose `chart_version` / `image_tag` inputs.
9999

100100
## Local kind reproduction
101101

102102
The `kubernetes` job can be reproduced on any machine with Docker and `mise install`-provided `kubectl` + `helm`:
103103

104-
Authenticate Docker and Helm to `ghcr.io` with credentials that have pull access to the dev packages before running these commands.
105-
106104
```shell
107105
kind create cluster --name release-canary-local
108106
109107
bash e2e/support/install-agent-sandbox.sh
110108
111-
for component in gateway sandbox supervisor; do
112-
image="ghcr.io/ai-openshell/openshell/${component}:dev"
113-
docker pull "$image"
114-
kind load docker-image "$image" --name release-canary-local
115-
done
116-
117-
helm install openshell oci://ghcr.io/ai-openshell/openshell/helm-chart \
109+
helm install openshell oci://quay.io/ai-openshell/charts/openshell \
118110
--version 0.0.0-dev \
119111
--namespace openshell --create-namespace \
120112
--set server.disableTls=true \
@@ -135,7 +127,7 @@ Keep `pkiInitJob.enabled=true` (the chart default), even when
135127
`server.disableTls=true`. The hook also generates the sandbox JWT signing
136128
secret that the gateway pod always mounts.
137129

138-
Swap `0.0.0-dev` for `0.0.0-dev.<sha>` and `:dev` for `:<sha>` to pin to a specific dev build. Tear down with `kind delete cluster --name release-canary-local`.
130+
Swap `0.0.0-dev` for `0.0.0-dev.<sha>` to pin to a specific dev build. Tear down with `kind delete cluster --name release-canary-local`.
139131

140132
Loopback registration auto-derives the gateway name to `openshell` if `--name` is omitted, which collides with the `install.sh`-installed local gateway — always pass `--name kind` (or another distinct name) when registering in addition to a local install.
141133

@@ -150,7 +142,7 @@ Loopback registration auto-derives the gateway name to `openshell` if `--name` i
150142
| `ubuntu-snap-system-docker` fails during the prover checks | The prover artifact is missing or packaged for the wrong architecture, `openshell.prover` is not exposed, missing the alias to `openshell-prover`, or not permitted to read the test policies, or its solver linkage is not runnable. | The `Install and check status` and `Check a policy boundary with the snap prover` steps, plus `snap info openshell` and `snap connections openshell`. |
151143
| `ubuntu-snap-docker-preflight` unexpectedly succeeds | The installer no longer fails before installing the OpenShell snap when Docker is absent or supplied by the Docker snap. | Inspect `install.log`, `docker-snap.log`, `snap list`, and snapd changes. |
152144
| `kubernetes` job fails on `helm install --wait` | Chart did not deploy in 5 min — usually image pull failure or readiness probe failing. | "Diagnostics on failure" step dumps `helm status`, manifest, pod describe, pod logs. |
153-
| `kubernetes` job fails on `kubectl wait` | Gateway pod stuck `CrashLoopBackOff` or `ImagePullBackOff`. | Diagnostics dump; check that `ghcr.io/ai-openshell/openshell/gateway:dev` was loaded into kind. |
145+
| `kubernetes` job fails on `kubectl wait` | Gateway pod stuck `CrashLoopBackOff` or `ImagePullBackOff`. | Diagnostics dump; check `:dev` image existence at `quay.io/ai-openshell/gateway`. |
154146
| `kubernetes` job fails on `openshell gateway add` or `status` | Port-forward not reachable, or CLI/gateway proto mismatch. | `port-forward.log` and `openshell gateway list` in the diagnostics dump. |
155147

156148
The `kubernetes` job's diagnostics step (only runs `if: failure()`) emits, in order: helm status, rendered manifest, `kubectl get all`, pod descriptions, pod logs (200 lines per container), port-forward log, gateway list, CLI version. Read it top-to-bottom — most failures fall out by the manifest or pod logs.

‎CI.md‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -481,18 +481,18 @@ Release rebuilds all stable artifacts with the stable version and publishes
481481
without rerunning qualification. These artifacts have different embedded versions
482482
from the qualified prerelease. Existing stable tags are never moved; a retry must
483483
resolve to the same qualified candidate. A retry rebuilds, then publishes only what
484-
is missing: it keeps published GHCR version tags, Helm charts, GitHub Release assets,
484+
is missing: it keeps published Quay version tags, Helm charts, GitHub Release assets,
485485
and npm versions. Snap uploads are not skipped.
486486

487487
Stable image builds save multi-platform OCI archives as workflow artifacts without
488-
pushing to GHCR. Publication copies those archives, including their attestations,
489-
to the stable version tags and verifies their SBOMs before updating `latest`.
488+
pushing them. Publication copies those archives, including their attestations,
489+
to the stable version tags on Quay and verifies their SBOMs before updating `latest`.
490490
The qualified prerelease's commit-SHA image tags remain unchanged.
491491

492492
Release is manually dispatched; pushing a stable tag does not trigger publication.
493493
Stable runs serialize across branches. A version older than the highest stable
494494
Git tag publishes versioned artifacts while preserving shared latest channels:
495-
GHCR `latest`, GitHub's latest release, npm `latest`, and snap `latest/stable`.
495+
Quay `latest`, GitHub's latest release, npm `latest`, and snap `latest/stable`.
496496
Each publisher rechecks the current remote stable tags immediately before
497497
updating its shared channel, including when a past publishing job is rerun.
498498
This protection applies to runs created with these workflow definitions.
@@ -544,9 +544,9 @@ gpg --output private-reports.tar.gz --decrypt codex-security-private.tar.gz.gpg
544544
```
545545

546546
Trivy accepts optional `images` and `charts`, one reference per line. Images can
547-
use tags or digests, such as `ghcr.io/nvidia/openshell/gateway:0.1.1-pre.1` or
548-
`ghcr.io/nvidia/openshell/gateway@sha256:<digest>`. Charts use versioned OCI
549-
references, such as `oci://ghcr.io/nvidia/openshell/helm-chart:0.1.1-pre.1`.
547+
use tags or digests, such as `quay.io/ai-openshell/gateway:0.1.1-pre.1` or
548+
`quay.io/ai-openshell/gateway@sha256:<digest>`. Charts use versioned OCI
549+
references, such as `oci://quay.io/ai-openshell/charts/openshell:0.1.1-pre.1`.
550550
Artifacts must already be published and accessible to the workflow. The caller
551551
selects artifacts matching the candidate; the workflow does not verify that
552552
association. Without artifact inputs, Trivy scans only the candidate's deployment
@@ -591,7 +591,7 @@ Run the scanner locally with:
591591

592592
```shell
593593
nix develop --command tasks/scripts/trivy-scan.sh config
594-
nix develop --command tasks/scripts/trivy-scan.sh images ghcr.io/nvidia/openshell/gateway:dev
594+
nix develop --command tasks/scripts/trivy-scan.sh images quay.io/ai-openshell/gateway:dev
595595
nix develop --command tasks/scripts/trivy-scan.sh gate
596596
nix develop --command tasks/scripts/trivy-scan.sh prepare-sarif
597597
```
@@ -726,9 +726,11 @@ These workflows run after merge to publish dev/tagged artifacts and verify them.
726726

727727
Each step that publishes to an external registry, store, or site lives in its own workflow with both `workflow_call` and `workflow_dispatch`. Release calls it, and a maintainer can dispatch it to finish one missing publication for an existing release without rerunning Release. Dispatch inputs identify an already-published release, such as its tag and source commit; the workflow verifies them before publishing and should skip what is already published. Keep the manual trigger when changing or moving a publisher.
728728

729+
CI builds push SHA-tagged images to the private CI registry, `ghcr.io/<owner>/openshell/<component>:<sha>`. Releases promote them to the public release registry: images to `quay.io/ai-openshell/{gateway,sandbox,supervisor}` and charts to `oci://quay.io/ai-openshell/charts/{openshell,openshell-workspace}`. Jobs that write to Quay run in the `release` environment and log in as the robot `ai-openshell+openshell_release` with the job's OIDC token through `ai-openshell/workflows/quay-login`; there is no stored registry secret. `ghcr.io/nvidia/openshell` is frozen and receives no new releases.
730+
729731
| File | Role |
730732
|---|---|
731-
| `.github/workflows/release-dev.yml` | Publishes the rolling `dev` build on every push to `main`. Builds gateway, sandbox, and supervisor images and binaries and packages, and pushes the Helm chart as `oci://ghcr.io/nvidia/openshell/helm-chart:0.0.0-dev` (plus an immutable `0.0.0-dev.<sha>` pin). Also dispatchable manually. |
733+
| `.github/workflows/release-dev.yml` | Publishes the rolling `dev` build on every push to `main`. Builds gateway, sandbox, and supervisor images and binaries and packages, promotes the images to `quay.io/ai-openshell/<component>` as `:dev` and `:<sha>`, and pushes the Helm chart as `oci://quay.io/ai-openshell/charts/openshell:0.0.0-dev` (plus an immutable `0.0.0-dev.<sha>` pin). Also dispatchable manually. |
732734
| `.github/workflows/release.yml` | Manually promote the latest qualified prerelease for a version and branch, create its stable tag, then rebuild and publish. Support releases preserve shared latest channels. Publishes the prerelease's notes preview, retagged, or generates notes when it is unavailable. The notes-only mode generates a release notes preview artifact. Published artifacts are never overwritten: a rerun fills in what is missing, and a bad published artifact is fixed by releasing a new patch version. |
733735
| `.github/workflows/release-auto-tag.yml` | Dispatched manually; its schedule is paused. Tags the next `-pre.N` on `main` when commits landed since the latest one, then dispatches Pre-release. It skips when the train has no `-pre.1` or its version is already stable, so push each train's `-pre.1` tag by hand. |
734736
| `.github/workflows/release-prerelease.yml` | Pre-release orchestrator, triggered by prerelease tag pushes or dispatched by Release Auto-Tag or manually. A tagless dispatch creates the next candidate on its branch; explicit tags select existing candidates. Builds, then publishes and qualifies in parallel. Qualification failure fails the run and sends the failure notification; published artifacts remain available. |

0 commit comments

Comments
 (0)