feat(cli): support cached builds during push

This commit is contained in:
2026-05-13 10:19:56 +00:00
parent 843ac72f26
commit aad4d806e7
4 changed files with 41 additions and 5 deletions
+26 -2
View File
@@ -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",
"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": {
+8
View File
@@ -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
+1
View File
@@ -118,6 +118,7 @@ tsdocker push --no-build Dockerfile_api Dockerfile_web
| `<patterns>` | Positional Dockerfile name patterns to select which images to push |
| `--registry=<url>` | 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
+3
View File
@@ -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;
}