diff --git a/.smartconfig.json b/.smartconfig.json index ccdf4ba..1702abc 100644 --- a/.smartconfig.json +++ b/.smartconfig.json @@ -4,6 +4,7 @@ "cli": true }, "@git.zone/cli": { + "schemaVersion": 2, "projectType": "npm", "module": { "githost": "gitlab.com", @@ -14,11 +15,34 @@ "license": "MIT" }, "release": { - "accessLevel": "public", - "registries": [ - "https://verdaccio.lossless.digital", - "https://registry.npmjs.org" - ] + "confirmation": "prompt", + "preflight": { + "requireCleanTree": true, + "test": false, + "build": true + }, + "targets": { + "git": { + "enabled": true, + "remote": "origin", + "pushBranch": true, + "pushTags": true + }, + "npm": { + "enabled": true, + "registries": [ + "https://verdaccio.lossless.digital", + "https://registry.npmjs.org" + ], + "accessLevel": "public", + "alreadyPublished": "success" + }, + "docker": { + "enabled": false, + "engine": "tsdocker", + "patterns": [] + } + } } }, "@ship.zone/szci": { diff --git a/changelog.md b/changelog.md index 65729f5..da91614 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## Pending + +### Features + +- Support cached builds during `tsdocker push`. + - Apply `--cached` to the push command's build phase before registry publishing. + - Migrate the project release config to schema v2 targets for the current release workflow. + ## 2026-05-09 - 2.2.8 - fix(package) normalize bin entry path for the tsdocker CLI diff --git a/readme.md b/readme.md index 7c0baa3..aaecd96 100644 --- a/readme.md +++ b/readme.md @@ -118,6 +118,7 @@ tsdocker push --no-build Dockerfile_api Dockerfile_web | `` | Positional Dockerfile name patterns to select which images to push | | `--registry=` | Push to a single specific registry instead of all configured | | `--no-build` | Skip the build phase; only push existing images from local registry | +| `--cached` | Skip unchanged Dockerfiles during the build phase | ### Config Subcommands diff --git a/ts/tsdocker.cli.ts b/ts/tsdocker.cli.ts index 9fbf945..701eae9 100644 --- a/ts/tsdocker.cli.ts +++ b/ts/tsdocker.cli.ts @@ -174,6 +174,9 @@ export let run = () => { buildOptions.noCache = true; } buildOptions.pull = argvArg.pull !== false; + if (argvArg.cached) { + buildOptions.cached = true; + } if (argvArg.verbose) { buildOptions.verbose = true; }