Skip to content

Keep only the image: one main branch, the recipe in image/, and a publish that ends green when nothing is new - #6

Merged
peters merged 1 commit into
mainfrom
trim/one-main
Oct 19, 2026
Merged

peters merged 1 commit into
mainfrom
trim/one-main

Conversation

@peters

@peters peters commented Oct 19, 2026

Copy link
Copy Markdown

Why

Peter's decision (2026-10-20): this repository only publishes the latest GA image of MongoDB Enterprise, so it keeps only that image's files, on one branch. Production runs on Atlas and updates itself.

What changes

  • One branch. This pull request goes into the new main (created from finter-9.0 at e606c2e). After the merge, main becomes the default branch. master and the finter-* branches stay for history.
  • The recipe moves to image/. 8.0/Dockerfile and its docker-entrypoint.sh (the only file it copies) move to image/, and publish.ps1 builds ./image. The generated-file header goes. The ARG MONGO_MAJOR and ARG MONGOSH_CHANNEL defaults change from 8.3 to 9.0, the values that publish.ps1 passes. The published image does not change, because the build always passes these arguments.
  • Unused upstream files are deleted: 7.0/, all Windows folders, the two templates, apply-templates.sh, update.sh, versions.json, versions.sh, generate-stackbrew-library.sh, pgp-keys.json and pgp-keys.sh (the Dockerfile downloads its keys itself), the root docker-entrypoint.sh (the same as the moved copy), the "Verify Templating" workflow, .gitattributes and .gitignore.
  • "Publish image":
    • It publishes on a push to main that changes publish.ps1 or image/**. Before, it published on a push to finter-* that changed publish.ps1 or 8.0/Dockerfile.
    • It checks that all three ARG defaults of image/Dockerfile match publish.ps1. Before, it checked only MONGO_VERSION.
    • Nothing to publish: on a push whose publish.ps1 version is the same as before the push (it reads publish.ps1 at github.event.before) and whose tag is already published, the run ends green with the notice "Nothing to publish". It does not build. A push that changes the version to a tag that is already published still fails, as before. A workflow_dispatch with push=true on a published tag also still fails.
    • Pull requests still get a dry run, now for publish.ps1, image/** and the workflow.
  • AGENTS.md describes the new flow: one main, the same steps for a GA patch, minor or major (publish.ps1 + image/Dockerfile, plus the signing key for a new major), a pull request with a dry run, and a merge that publishes. There is no default-branch switch. README.md describes this repository instead of the upstream one.

Checks

  • The dry run of "Publish image" on this pull request builds 9.0.4 from ./image and checks the packages and mongod --version. Nothing is pushed.
  • actionlint passes for the workflow. The version-reading code was run with pwsh against publish.ps1 at e606c2e (9.0.4) and at an unknown commit (empty, so the run fails as before).
  • After the merge, the push to main changes publish.ps1 and image/ with the version still 9.0.4, which is published, so the run must end with "Nothing to publish".

…lish that ends green when nothing is new

The repository publishes one image, so it keeps only the files of that image.

- The recipe moves from 8.0/ to image/ (Dockerfile and docker-entrypoint.sh).
  publish.ps1 builds ./image. The ARG defaults of the Dockerfile now match
  publish.ps1 (MONGO_MAJOR and MONGOSH_CHANNEL 9.0, not 8.3), and "Publish
  image" checks all three, not only MONGO_VERSION.
- The upstream docker-library files are gone: 7.0/, the Windows folders, the
  templates, apply-templates.sh, update.sh, versions.json, versions.sh,
  generate-stackbrew-library.sh, pgp-keys.json, pgp-keys.sh (the Dockerfile
  downloads its keys itself), the root docker-entrypoint.sh, the "Verify
  Templating" workflow, .gitattributes and .gitignore.
- "Publish image" publishes on a push to main that changes publish.ps1 or
  image/. When the tag is published and the push did not change the version
  in publish.ps1, it ends green with the notice "Nothing to publish". A push
  that changes the version to a published tag still fails. Pull requests
  still get a dry run.
- AGENTS.md describes one main branch: a GA patch, minor or major is a change
  of publish.ps1 and image/Dockerfile (plus the signing key of a new major) in
  a pull request into main, and the merge publishes. There is no
  default-branch switch. README.md describes this repository.
@peters
peters merged commit 3d80529 into main Oct 19, 2026
1 check passed
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