From 5cf94c29b24d454fab6cba4bc39ef597c6c41738 Mon Sep 17 00:00:00 2001
From: Claude
Date: Fri, 20 Nov 2026 09:41:02 +0000
Subject: [PATCH] docs(camcore): document pinned-tag deployment for Neptune
The deployment guide and README told operators to run production on
the mutable latest tag and to update with docker compose pull. Since
OPS-1446 the Neptune container is pinned to an immutable develop-
tag, and Neptune cannot pull the private image from the command line.
- Deploy and roll back by changing the Compose image line to a
develop- tag, then recreate with --pull never
- Check the Compose file still matches the running container before
deploying, after drift was found during OPS-1446 (OPS-1532)
- Add a Neptune section: pull through Portainer until a host
credential exists (OPS-1531), and change the container through its
Compose file
- Point to CMA-A-20 for the running version and host paths, and to a
YouTrack Change for every production deployment
- Use sentence case for "Help centre" and the "CamCore Status" name
Refs: OPS-1446
Co-Authored-By: Claude Opus 5.5
Claude-Session: https://claude.ai/code/session_01RnghqD5NZ2nMdRsSsDsvUp
---
README.md | 12 +++----
docs/camcore-deployment.md | 65 ++++++++++++++++++++++++++------------
2 files changed, 50 insertions(+), 27 deletions(-)
diff --git a/README.md b/README.md
index 63c86e0647..531f74c572 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@
·
CamCore Status
·
- Help Centre
+ Help centre
·
Upstream Seerr
@@ -38,8 +38,8 @@ CamCore-specific changes are intentionally kept narrow so upstream fixes can con
| Container | `ghcr.io/team-camcore/seerr` |
| Email sender | `Requests | CamCore Media ` |
| Support | `https://camcore.au/support` |
-| Help Centre | `https://camcore.au/help` |
-| Service status | `https://camcore.au/status` |
+| Help centre | `https://camcore.au/help` |
+| CamCore Status | `https://camcore.au/status` |
| Time zone | `Australia/Melbourne` |
## CamCore customisation
@@ -100,7 +100,7 @@ The CamCore production image is built for:
linux/amd64
```
-`latest` and `camcore` are only published after the CamCore validation job succeeds. The SHA tag provides an immutable version for rollback and troubleshooting.
+All three tags are published only after the CamCore validation job succeeds. `latest` and `camcore` move with every build; production is pinned to the immutable `develop-` tag, which is also the rollback target. Production deployments are made under an approved Change in YouTrack.
## Updating the existing service
@@ -121,7 +121,7 @@ See [CamCore Deployment](./docs/camcore-deployment.md) for the full deployment,
```yaml
services:
seerr:
- image: ghcr.io/team-camcore/seerr:latest
+ image: ghcr.io/team-camcore/seerr:develop-
init: true
container_name: seerr
restart: unless-stopped
@@ -140,7 +140,7 @@ services:
retries: 3
```
-Replace the example host path with the exact config-folder path already used by the current container.
+Replace `develop-` with the build being deployed, and the example host path with the exact config-folder path already used by the current container.
## Development
diff --git a/docs/camcore-deployment.md b/docs/camcore-deployment.md
index c6e3d7cd12..ce6ca8a98c 100644
--- a/docs/camcore-deployment.md
+++ b/docs/camcore-deployment.md
@@ -3,11 +3,13 @@
This fork publishes the CamCore-branded Cameron-Media Requests image to:
```text
-ghcr.io/team-camcore/seerr:latest
+ghcr.io/team-camcore/seerr
```
The CamCore production image is built for `linux/amd64`.
+Production runs on Neptune and is **pinned to an immutable `develop-` tag**, not `latest`. Every production deployment needs an approved Change in YouTrack (OPS project) before it starts. The current running version, rollback image and host paths are recorded in the Knowledge Base article *CMA-A-20 Seerr and Media Requests*.
+
## Release model
A push to `develop` does not publish the CamCore image until the fork has passed its validation job. The CamCore workflow runs formatting, linting, type checking and unit tests before the AMD64 container is built and pushed.
@@ -20,7 +22,7 @@ ghcr.io/team-camcore/seerr:camcore
ghcr.io/team-camcore/seerr:develop-
```
-The SHA tag provides an immutable rollback target for each successful build.
+Deploy the `develop-` tag. It never changes, so the running version only moves when the Compose file is edited under a Change, and it is the rollback target for that build. `latest` and `camcore` move on every successful build to `develop`; do not run production on them.
## Preserve the existing configuration
@@ -36,11 +38,18 @@ Only the container image needs to change.
## Before updating
-1. Back up the existing host folder that is mapped to `/app/config`.
-2. Record the current image tag or digest.
-3. Record the current port mapping, environment variables, network and reverse-proxy destination.
-4. Confirm that the existing config folder is writable by UID and GID `1000:1000`.
-5. Confirm the CamCore image workflow completed successfully for the version being deployed.
+1. Confirm the Change for this deployment is approved and record its evidence there.
+2. Confirm the CamCore image workflow completed successfully for the version being deployed.
+3. Record the running image and its ID (the rollback point):
+
+ ```sh
+ docker inspect seerr --format 'image={{.Config.Image}} id={{.Image}}'
+ ```
+
+4. Confirm the Compose file still describes the running container. Its `image:` line must match the `image=` value above. If it does not, stop and record the drift in the Change before going further.
+5. Record the current port mapping, environment variables, network and reverse-proxy destination.
+6. Back up the existing host folder that is mapped to `/app/config`.
+7. Confirm that the existing config folder is writable by UID and GID `1000:1000`.
Example permission repair when required:
@@ -52,12 +61,12 @@ docker run --rm \
## Docker Compose
-Keep the current service definition and change only the `image` value when moving between CamCore builds.
+Keep the current service definition and change only the `image` value when moving between CamCore builds. Use the immutable tag of the build being deployed.
```yaml
services:
seerr:
- image: ghcr.io/team-camcore/seerr:latest
+ image: ghcr.io/team-camcore/seerr:develop-
init: true
container_name: seerr
restart: unless-stopped
@@ -78,13 +87,27 @@ services:
Replace `/path/to/existing/seerr/config` with the exact host path already used by the current container.
-Update the container with:
+Keep a copy of the Compose file before editing it, then pull the image and recreate only the `seerr` service:
```sh
-docker compose pull
-docker compose up -d
+docker pull ghcr.io/team-camcore/seerr:develop-
+docker compose up -d --pull never seerr
```
+`--pull never` makes Compose use the image already pulled, so the recreate cannot fetch a different build.
+
+## Neptune (production)
+
+The production container runs on Neptune as the Compose project `seerr`. The Compose file path, config folder path and current image are recorded in *CMA-A-20 Seerr and Media Requests*.
+
+The `ghcr.io/team-camcore/seerr` package is private and, as at 20 November 2026, Neptune has no GHCR login, so `docker pull` on the host fails with `unauthorized`. Pull the image through Portainer instead (Neptune environment → Images, `ghcr.io` registry), then confirm its digest on the host:
+
+```sh
+docker image inspect ghcr.io/team-camcore/seerr:develop- --format '{{index .RepoDigests 0}}'
+```
+
+Then recreate with `docker compose up -d --pull never seerr` from the Compose project folder. Change the container through its Compose file, not through Portainer's recreate, so the file keeps describing what is running. The pull credential is tracked under OPS-1531.
+
## Synology Container Manager
When updating through Synology Container Manager:
@@ -154,19 +177,19 @@ After deployment, confirm:
## Rollback
-Prefer an immutable CamCore SHA tag when rolling back the application image:
+Roll back to the immutable tag recorded as the rollback point in the Change:
```text
-ghcr.io/team-camcore/seerr:develop-
+ghcr.io/team-camcore/seerr:develop-
```
To roll back without losing configuration:
-1. Stop the current CamCore container.
-2. Restore the previous known-good image tag or digest.
-3. Keep the same `/app/config` volume mapping.
-4. Recreate the container.
-5. Verify requests, integrations and email notifications.
+1. Set the Compose `image:` line back to the previous `develop-` tag. Keep the same `/app/config` volume mapping.
+2. If that image is no longer on the host, pull it first (through Portainer on Neptune).
+3. Recreate the container with `docker compose up -d --pull never seerr`.
+4. Verify requests, integrations and email notifications.
+5. Record the rollback in the Change.
If a database migration prevents an image-only rollback, stop the container and restore the config-folder backup taken before the update.
@@ -177,5 +200,5 @@ CamCore branding changes should remain separate from upstream functionality wher
1. merge upstream into the CamCore fork;
2. review conflicts in the CamCore branding and email template files carefully;
3. allow validation to complete before publishing/deploying the resulting image;
-4. verify the live service after deployment;
-5. record material changes in CamCore Operations.
+4. deploy the resulting `develop-` image under a Change and verify the live service;
+5. use a merge commit, not a squash, so later upstream syncs stay clean.