diff --git a/apps/base/piedmont/deployment-api.yaml b/apps/base/piedmont/deployment-api.yaml index c6e643a..32fc373 100644 --- a/apps/base/piedmont/deployment-api.yaml +++ b/apps/base/piedmont/deployment-api.yaml @@ -21,9 +21,9 @@ spec: kubernetes.io/hostname: siriussec containers: - name: contact-api - # This contact API has no CI build path that publishes a tagged image - # (see docs/site-image-pinning.md), so it is pinned by digest. - image: forgejo.siriusdevops.com/sirius/phs-contact@sha256:da61fc7943881f801fe6201749c01e364df6475d2460d6d17c8a6b48009f0056 + # Built and pushed by sirius/websites/.forgejo/workflows/deploy-phs-contact.yml + # as :$sha (see docs/site-image-pinning.md). + image: forgejo.siriusdevops.com/sirius/phs-contact:5035443abb62913362e416ab7030a64726886886 imagePullPolicy: IfNotPresent command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"] ports: diff --git a/apps/base/sirius-growth/deployment-api.yaml b/apps/base/sirius-growth/deployment-api.yaml index df03f85..7797954 100644 --- a/apps/base/sirius-growth/deployment-api.yaml +++ b/apps/base/sirius-growth/deployment-api.yaml @@ -21,9 +21,9 @@ spec: kubernetes.io/hostname: siriussec containers: - name: contact-api - # This contact API has no CI build path that publishes a tagged image - # (see docs/site-image-pinning.md), so it is pinned by digest. - image: forgejo.siriusdevops.com/sirius/sirius-growth-contact@sha256:cba0a5c67fee639dea78b568cbdf5889b2c78cc2c9cf85b02964ce17d60aab31 + # Built and pushed by sirius-growth/.forgejo/workflows/deploy-contact.yml + # as :$sha (see docs/site-image-pinning.md). + image: forgejo.siriusdevops.com/sirius/sirius-growth-contact:c9c9379ebceca6879d3bbeff1c2601b6484e87b0 imagePullPolicy: IfNotPresent command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"] ports: diff --git a/docs/site-image-pinning.md b/docs/site-image-pinning.md index b964b2d..6c25120 100644 --- a/docs/site-image-pinning.md +++ b/docs/site-image-pinning.md @@ -61,23 +61,27 @@ whatever CI pushed last. A site repo push alone changes nothing in the cluster. | siriusdevops | siriusdevops-contact | `siriusdevops-contact:f0dde2f48c8224fb80d801ecb0d155c93332dc13` | | sirius-growth | sirius-growth-site | `sirius-growth-site:ea306b73b0d7c9ae8c33393a420e6d1d452b802b` | | sirius-growth | sirius-growth-portal | `sirius-growth-portal:d9e558c4e0922d3ecd28214f7698ec0994170481` | -| sirius-growth | sirius-growth-contact | `sirius-growth-contact@sha256:cba0a5c67fee639dea78b568cbdf5889b2c78cc2c9cf85b02964ce17d60aab31` | +| sirius-growth | sirius-growth-contact | `sirius-growth-contact:c9c9379ebceca6879d3bbeff1c2601b6484e87b0` | | piedmont | piedmont-site | `phs-site:5b590cddab6d7889fdd3c272255f28c4560e752e` | -| piedmont | piedmont-contact | `phs-contact@sha256:da61fc7943881f801fe6201749c01e364df6475d2460d6d17c8a6b48009f0056` | +| piedmont | piedmont-contact | `phs-contact:5035443abb62913362e416ab7030a64726886886` | -Each pin was chosen as the tag whose manifest is **the image already running** -(identical config digest), so pinning was a no-op for visitors. +Each pin is the tag CI printed for the commit that was deployed. (The first six +pins were chosen as the tag whose manifest was **the image already running**, so +pinning was a no-op for visitors; the two contact APIs were re-pinned after +their pipelines first ran — same source, freshly built.) -### The two digest-pinned contact APIs +### Contact APIs -`sirius-growth-contact` and `phs-contact` have **no CI build path**: neither -`sirius-growth/.forgejo/workflows/*` nor `sirius/websites/.forgejo/workflows/deploy-handyman.yml` -builds them (the source dirs `contact-api/` and `phs-contact-api/` exist, but no -workflow pushes them; the registry only ever held `:latest`). They were built by -hand before the workflows were trimmed. Per the no-invented-pipelines rule they -are pinned by `@sha256:` digest — immutable, but there is no tag for an operator -to bump. If a build step is ever added for them, move them to `:` like the -rest. Both deployments run the same image content their pods already ran. +Both contact APIs now build in CI, on `docker-amd64`, tagging `:$sha` and +promoting `:latest` as a pointer only: + +| Repo | Workflow | `paths:` | Source | Image | +|---|---|---|---|---| +| `sirius-growth` (`master`) | `.forgejo/workflows/deploy-contact.yml` | `contact-api/**` | `contact-api/` | `sirius/sirius-growth-contact` | +| `sirius/websites` (`main`) | `.forgejo/workflows/deploy-phs-contact.yml` | `phs-contact-api/**` | `phs-contact-api/` | `sirius/phs-contact` | + +They used to be hand-built (`:latest` only) and therefore pinned by `@sha256:`. +A change to either API is now a push → printed `:` ref → bump the pin here. ## Registry facts