Repository navigation
Keep only the image: one main branch, the recipe in image/, and a publish that ends green when nothing is new - #6
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
main(created fromfinter-9.0at e606c2e). After the merge,mainbecomes the default branch.masterand thefinter-*branches stay for history.image/.8.0/Dockerfileand itsdocker-entrypoint.sh(the only file it copies) move toimage/, andpublish.ps1builds./image. The generated-file header goes. TheARG MONGO_MAJORandARG MONGOSH_CHANNELdefaults change from8.3to9.0, the values thatpublish.ps1passes. The published image does not change, because the build always passes these arguments.7.0/, all Windows folders, the two templates,apply-templates.sh,update.sh,versions.json,versions.sh,generate-stackbrew-library.sh,pgp-keys.jsonandpgp-keys.sh(the Dockerfile downloads its keys itself), the rootdocker-entrypoint.sh(the same as the moved copy), the "Verify Templating" workflow,.gitattributesand.gitignore.mainthat changespublish.ps1orimage/**. Before, it published on a push tofinter-*that changedpublish.ps1or8.0/Dockerfile.ARGdefaults ofimage/Dockerfilematchpublish.ps1. Before, it checked onlyMONGO_VERSION.publish.ps1version is the same as before the push (it readspublish.ps1atgithub.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. Aworkflow_dispatchwithpush=trueon a published tag also still fails.publish.ps1,image/**and the workflow.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
./imageand checks the packages andmongod --version. Nothing is pushed.actionlintpasses for the workflow. The version-reading code was run with pwsh againstpublish.ps1at e606c2e (9.0.4) and at an unknown commit (empty, so the run fails as before).mainchangespublish.ps1andimage/with the version still 9.0.4, which is published, so the run must end with "Nothing to publish".