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 "cli": true
}, },
"@git.zone/cli": { "@git.zone/cli": {
"schemaVersion": 2,
"projectType": "npm", "projectType": "npm",
"module": { "module": {
"githost": "gitlab.com", "githost": "gitlab.com",
@@ -14,11 +15,34 @@
"license": "MIT" "license": "MIT"
}, },
"release": { "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": [ "registries": [
"https://verdaccio.lossless.digital", "https://verdaccio.lossless.digital",
"https://registry.npmjs.org" "https://registry.npmjs.org"
] ],
"accessLevel": "public",
"alreadyPublished": "success"
},
"docker": {
"enabled": false,
"engine": "tsdocker",
"patterns": []
}
}
} }
}, },
"@ship.zone/szci": { "@ship.zone/szci": {
+8
View File
@@ -1,5 +1,13 @@
# Changelog # 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) ## 2026-05-09 - 2.2.8 - fix(package)
normalize bin entry path for the tsdocker CLI 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 | | `<patterns>` | Positional Dockerfile name patterns to select which images to push |
| `--registry=<url>` | Push to a single specific registry instead of all configured | | `--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 | | `--no-build` | Skip the build phase; only push existing images from local registry |
| `--cached` | Skip unchanged Dockerfiles during the build phase |
### Config Subcommands ### Config Subcommands
+3
View File
@@ -174,6 +174,9 @@ export let run = () => {
buildOptions.noCache = true; buildOptions.noCache = true;
} }
buildOptions.pull = argvArg.pull !== false; buildOptions.pull = argvArg.pull !== false;
if (argvArg.cached) {
buildOptions.cached = true;
}
if (argvArg.verbose) { if (argvArg.verbose) {
buildOptions.verbose = true; buildOptions.verbose = true;
} }