mirror of
https://github.com/kellymichels/zscripts-token-savers
synced 2026-10-07 07:18:18 +00:00
* fix(zdeploy): build docker stacks that come from a Dockerfile Mirrors the fix in the private scripts repo; the code is identical in both, only the config differs. The docker kind ran `docker compose pull` then `docker compose up -d`. That is right for a stack of published images and wrong for one built from a Dockerfile in the tree, where there is nothing to pull. `up -d` builds only when the image is MISSING, so the first deploy works and every one after it uploads the new code, starts the old image, and reports success. A project opts into building with deploy.build, which runs `docker compose build --pull` so the base image is refreshed at the same time. Stacks that pull are unaffected. The example config documents the flag on the docker project, next to the existing note about startApp, because the failure is silent and nobody goes looking for a setting they do not know exists. CHECKSUMS.txt regenerated, since two covered scripts changed. 286 tests pass, 1 skipped. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(checksums): hash the scripts as git checks them out, not as a tool wrote them CI failed on the two files this branch touches while the same suite passed here. The manifest was right about the wrong bytes. .gitattributes pins *.ps1 to eol=crlf, and its comment says why: it makes these files byte-identical on every platform, which is what lets CHECKSUMS.txt hold one hash per file rather than one per OS. The edit that added Get-DockerImageStep was applied by a script that wrote LF, so the working copy stopped matching the pin. zchecksums then faithfully recorded the LF hashes, and every checkout that honours .gitattributes - including CI - disagreed. Nothing was wrong with the committed content: git normalises on the way in, so the objects were always correct. Only the local working copy and the manifest taken from it were off. Re-materialised both files through git so they carry the endings the attribute pins, then regenerated the manifest from those. 286 tests pass, 1 skipped. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| ArgumentParsing.Tests.ps1 | ||
| Checksums.Tests.ps1 | ||
| DeployTag.Tests.ps1 | ||
| DockerImageStep.Tests.ps1 | ||
| Invoke-Coverage.ps1 | ||
| NewProjectArchive.Tests.ps1 | ||
| PlainTextTwins.Tests.ps1 | ||
| sanitization-patterns.psd1 | ||
| Sanitization.Tests.ps1 | ||
| StartGitPull.Tests.ps1 | ||
| VerifyPlan.Tests.ps1 | ||
| ZHelpers.Tests.ps1 | ||