Trim the prose to what is true now
This commit is contained in:
@@ -17,6 +17,6 @@ test("the real template renders clean and pins no literal image tag", () => {
|
||||
const rendered = renderOverview(readFileSync("release-tooling/dockerhub-overview.md.tmpl", "utf8"), "9.9.9");
|
||||
assert.deepEqual(leftoverPlaceholders(rendered), []);
|
||||
assert.match(rendered, /larvit\/plainpages:9\.9\.9/); // the placeholder actually reaches the examples
|
||||
// A hardcoded version here is what went stale on the live page; the release must own every one.
|
||||
// The release owns every image tag on the page, so a literal one must not survive rendering.
|
||||
assert.doesNotMatch(rendered, /larvit\/plainpages:\d+\.\d+\.\d+(?<!9\.9\.9)/);
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Publishes the Docker Hub repository overview from dockerhub-overview.md.tmpl. The page is the
|
||||
// first thing an adopter copies, and its image tags were maintained by hand — they pointed at a
|
||||
// version that no longer existed. `{{VERSION}}` is rendered from the release, so they cannot.
|
||||
// first thing an adopter copies, so `{{VERSION}}` is rendered from the release being published
|
||||
// rather than written by hand.
|
||||
|
||||
const HUB = "https://hub.docker.com/v2";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user